* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.2s ease;
}

/* Temas */
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-hero: linear-gradient(135deg, #0b2f3d 0%, #1b4f6e 100%);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #2c8eb3;
  --accent-dark: #1b4f6e;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
}

body.dark {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --bg-hero: linear-gradient(135deg, #0a1c24 0%, #0f2c3f 100%);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #334155;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 35px -12px rgba(0, 0, 0, 0.4);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Toggle tema */
.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 60px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  display: flex;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.theme-toggle:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: var(--bg-hero);
  border-radius: 2rem;
  padding: 3rem;
  margin-bottom: 3rem;
  color: white;
  box-shadow: var(--shadow-lg);
}
.hero-content {
  flex: 2;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.tagline {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.badge {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  padding: 0.4rem 1.2rem;
  border-radius: 60px;
  font-size: 0.85rem;
  font-weight: 500;
}
.contact-info-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.contact-info-hero a, .contact-info-hero span {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}
.contact-info-hero a:hover {
  opacity: 0.8;
}
.profile-photo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.profile-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.3);
  box-shadow: 0 20px 30px -10px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}
.profile-photo img:hover {
  transform: scale(1.02);
}

/* Secciones */
section {
  background: var(--bg-card);
  border-radius: 1.8rem;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  border: 1px solid var(--border);
}
h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border-left: 5px solid var(--accent);
  padding-left: 1rem;
}
h2 i {
  color: var(--accent);
  font-size: 1.6rem;
}
.grid-2, .grid-3 {
  display: grid;
  gap: 2rem;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.service-card {
  background: var(--bg-primary);
  border-radius: 1.5rem;
  padding: 1.8rem;
  transition: all 0.25s;
  border: 1px solid var(--border);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.service-card i {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

/* Carrusel profesional sin recortes */
.swiper {
  width: 100%;
  height: 550px;
  border-radius: 1.5rem;
  overflow: hidden;
  background-color: var(--bg-primary);
}
.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
}
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.swiper-slide img:hover {
  transform: scale(1.02);
}
@media (max-width: 768px) {
  .swiper {
    height: 320px;
  }
}

/* Mapa responsivo */
.mapa-container iframe {
  width: 100%;
  border-radius: 1.5rem;
  height: 400px;
  border: none;
}

/* Formularios */
.form-group {
  margin-bottom: 1.2rem;
}
label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
input, select, textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  transition: 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44,142,179,0.2);
}
.btn-primary {
  background: var(--accent-dark);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  width: 100%;
  font-size: 1rem;
}
.btn-primary:hover {
  background: #0e4b63;
  transform: translateY(-2px);
}
.mapa-container iframe {
  width: 100%;
  border-radius: 1.5rem;
  height: 320px;
  border: none;
}
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  transition: 0.2s;
  z-index: 100;
}
.whatsapp-float a {
  color: white;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  background: #128C7E;
}
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.alert {
  padding: 1rem;
  border-radius: 1rem;
  margin-top: 1rem;
  display: none;
}
.alert-success {
  background: #dcfce7;
  color: #166534;
}
.alert-error {
  background: #fee2e2;
  color: #991b1b;
}
body.dark .alert-success {
  background: #14532d;
  color: #bbf7d0;
}
body.dark .alert-error {
  background: #7f1d1d;
  color: #fecaca;
}

/* Animaciones scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 2rem;
  }
  .hero-content {
    text-align: center;
  }
  .badges {
    justify-content: center;
  }
  .contact-info-hero {
    justify-content: center;
  }
  .profile-photo img {
    width: 150px;
    height: 150px;
  }
  h2 {
    font-size: 1.5rem;
  }
  .container {
    padding: 0 1rem;
  }
  section {
    padding: 1.5rem;
  }
  .swiper {
    height: 250px;
  }
}