:root {
  --bg:#f6fbff;
  --primary:#5596C5;
  --accent:#2bd4a4;
  --dark:#0f1724;
  --muted:#6b7280;
  --glass: rgba(255,255,255,0.7);
  --card-shadow: 0 8px 20px rgba(15,23,36,0.07);
  --radius: 10px;
  --max-width: 1200px;
  --container-padding: 0.9rem; /* reducido para menos espacio en blanco */
  --accent-gradient: linear-gradient(135deg,var(--primary),#4cc5ff 60%);
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  scroll-behavior: smooth;
  color-scheme: light;
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Basic resets */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  padding-top: 80px; /* Add padding for fixed navbar */
  background: linear-gradient(180deg,#f6fbff 0%, #ffffff 100%);
  color: var(--dark);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height: 1.45;
  font-size: 15.5px;
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

::placeholder, select, input, textarea{
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

section[id] {
  scroll-margin-top: 80px; /* Ajusta según la altura de tu navbar */
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 calc(var(--container-padding) * 1.25);
}

/* Header / Nav */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 45px;
  margin-right: 12px;
  transition: transform 0.3s ease;
}

.brand:hover img {
  transform: scale(1.05);
}

.brand-title {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: #333;
  text-align: center;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link.active {
  border-bottom: 1px solid var(--primary);
  color: #000;
  box-shadow: 0 2px 8px rgba(31,140,255,0.2);
}

.nav-link:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 140, 255, 0.1);
  color: #fff;
}

.nav-link.cta {
  background: #5596c5d0;
  color: white;
  font-weight: 700;
}

.nav-link.cta:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* Mobile styles */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-toggle i {
  transition: transform 0.3s ease;
}

.mobile-toggle.open i {
  transform: rotate(90deg);
}

.mobile-toggle:hover {
  background: rgba(31,140,255,0.1);
  transform: scale(1.05);
}

.mobile-toggle:active {
  transform: scale(0.95);
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0,0,0,0.15);
    padding: 100px 0 40px 0;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
  }
  
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    right: 0;
  }
  
  .nav-link {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .nav-link:hover {
    background: rgba(31,140,255,0.08);
    color: var(--primary);
    padding-left: 40px;
  }
  
  .nav-link.active {
    background: rgba(31,140,255,0.12);
    color: var(--primary);
    padding-left: 40px;
  }
  
  .nav-link.cta {
    color: white;
    margin: 20px 32px;
    border-radius: 12px;
    border: none;
    text-align: center;
    justify-content: center;
  }
  
  .nav-link.cta:hover {
    background: linear-gradient(135deg, #4cc5ff 0%, var(--primary) 100%);
    transform: translateY(-2px);
    padding-left: 32px;
  }
  
  .mobile-toggle {
    display: block;
    position: relative;
    z-index: 1001;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .nav-links {
    width: 100vw;
    right: -100vw;
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-link {
    padding: 18px 24px;
    font-size: 1.15rem;
  }
  
  .nav-link.cta {
    margin: 24px 24px;
    padding: 16px 24px;
  }
}

/* HERO */
.hero {
  position: relative;
  padding: 2.2rem 0; /* reducido significativamente */
  height: 90vh; /* menor altura */
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.02)), url('img/baño.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-overlay {
  position:absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,140,255,0.20), rgba(43, 212, 164, 0.165));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  top: 120px;
  display: flex;
  gap: 1rem;
  align-items: stretch;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
}

.hero h1 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

.hero p {
  opacity: 0.95;
  margin: 0 0 0.9rem;
}

.hero-ctas {
  display: flex;
  margin: 0.6rem 0;
  gap: 0.6rem;
}

.btn {
  display: block;
  align-items: center;
  gap: 0.5rem;
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  font-weight:700;
  font-size: 0.95rem;
}

.btn.primary {
  background:var(--accent-gradient);color:#fff;box-shadow: 0 8px 18px rgba(31,140,255,0.10)
}

.btn.ghost {
  background:rgba(0, 0, 0, 0.52);
  color:#fff;
}

.btn.small {
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
}

/* hero features */
.hero-features {
  display: flex;
  gap: 0.8rem;
  list-style:none;
  padding: 0;
  margin: 0;
  color:#f0f9ff;
}

.hero-features li{
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-weight:600;
  font-size: 0.9rem;
}

/* hero card */
.hero-card {
  width: 280px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.92));
  border-radius: 14px;
  padding: 0.9rem;
  align-self:flex-end;
  box-shadow: var(--card-shadow);
  color: var(--dark)
}

.card-inner {
  background:transparent;
  padding: 0.3rem
}

.card-title {
  font-weight:700;
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
}

/* Sections (reduced gaps) */
.section {
  padding: 1.6rem 0;
}

.section.compact {
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

.section-head {
  text-align: center;
  margin-bottom: 1rem;
}

.section-head h2{
  margin: 0;
  font-size: 1.35rem;
}

.section-head p {
  color: var(--muted);
  margin-top: 0.3rem;
  font-size: 0.95rem;
}

/* Services grid (tighter layout) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.service-card {
  background:#fff;
  padding: 0.9rem;
  border-radius: 10px;
  border: 1px solid #cccccc7b;
  box-shadow: var(--card-shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.icon {
  width:  30px;
}

.service-card h3{
  margin: 0;
  font-size: 1rem;
}

.service-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

.service-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(15,23,36,0.03)
}

/* Two columns layout */
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.price-card {
  background:#fff;
  padding: 0.9rem;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  text-align: center;
  position:relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.price-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(15,23,36,0.03);
}

.price-card .price {
  font-size: 1.4rem;
  font-weight:800;
  margin: 0.3rem 0;
}

.price-card.featured {
  transform: scale(1.02);
  border: 2px solid rgba(31,140,255,0.06);
}

.badge {
  position: absolute;
  top:-10px;
  left:50%;
  transform:translateX(-50%);
  background:var(--accent);
  color:#fff;
  padding: 6px 10px;
  border-radius:999px;
  font-weight:700;
  font-size: 0.85rem
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0.9rem;
}

.testimonial {
  background:#fff;
  padding: 0.9rem;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  border: 1px solid #cccccc7b;
  color: var(--dark);
  display: flex;
  gap: 0.7rem;
  flex-direction: column;
  align-items:flex-start;
}

.test-avatar img {
  width: 56px;
  height:56px;
  border-radius:999px;
  object-fit:cover;
  border:2px solid rgba(0, 0, 0, 0.04);
}

.testimonial-flex {
  display: flex;
  gap: 0.4rem;
}

.testimonial p {
  font-style:italic;margin: 0;font-size: 0.95rem
}

.testimonial cite {
  font-weight:600;color: var(--muted);margin-top: 0.4rem
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-row {
  display: flex;
  gap: 0.6rem;
}

.form-row input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 0.7rem;
  border-radius: 10px;
  border: 1px solid #cccccc7b;
  background:#fff;
  font-size: 0.95rem;
}

.form-msg {
  display: none;
  margin-top: 16px;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  max-width: max-content;
  transition: opacity 0.5s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.form-msg.hidden {
  opacity: 0;
  pointer-events: none;
}

.form-msg.success {
  background: #e6f9f0;
  color: #0f5132;
  border: 1px solid #0f5132;
}

.form-msg.error {
  background: #fdecea;
  color: #842029;
  border: 1px solid #842029;
}

.form-msg.info {
  background: #eef5ff;
  color: #084298;
  border: 1px solid #084298;
}

.socials {
  margin-bottom: 1.5em;
  display: flex;
  gap: 12px;
}

.contact-info .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: var(--primary);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 1.4rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-info .socials a::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.contact-info .socials a:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(31, 140, 255, 0.3);
  color: #fff;
}

.contact-info .socials a:hover::before {
  opacity: 1;
}

/* Colores específicos por red social (opcional) */
.contact-info .socials a[aria-label="Facebook"]:hover {
  background: #1877f2;
  color: #fff;
}

.contact-info .socials a[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}

.contact-info .socials a[aria-label="Whatsapp"]:hover {
  background: #25d366;
  color: #fff;
}

.contact-info .socials a:active {
  transform: translateY(-2px) scale(1.02);
}

.box-contact-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5em;
  font-size: 0.95rem;
  color: var(--dark);
}

.box-contact-info img {
  width:  18px;
}

/* Footer */
.site-footer {
  padding: 1.2rem 0;
  background: linear-gradient(180deg,#04263b, #06324a);
  color:#dbeffb;
  margin-top: 1.6rem;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer-flex a {
  color:inherit;
  text-decoration: none;
  opacity: 0.95
}

.footer-bottom {
  text-align: center;padding-top: 0.6rem;color:rgba(219,239,251,0.8);font-size: 0.95rem
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: all .65s cubic-bezier(.2,.9,.2,1) .5s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-text {
    max-width:  100%;
  }

  .hero-content {
    flex-direction: column;
  }

  .hero-card {
    width:  100%;
    order:2
  }

  .services-grid {
    grid-template-columns:repeat(2,1fr)
  }

  .two-cols {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial {
    flex-direction: column;align-items: center;text-align: center;
  }

  .footer-flex {
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.2rem 0;
  }

  .hero h1 {
    font-size: 1.25rem;
  }

  .form-row {
    flex-direction: column;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand img {
    height: 40px;
  }

  .nav-wrap {
    padding: 0.8rem 1rem;
  }

  .service-img {
    height: 110px;
  }

  .price-img {
    height: 100px;
  }
}

/* Additional responsive improvements */
@media (max-width: 480px) {
  .brand-title {
    font-size: 0.9rem;
  }
  
  .brand img {
    height: 35px;
    margin-right: 8px;
  }
  
  .nav-wrap {
    padding: 0.7rem 0.8rem;
  }
}

/* Language switcher fixed flags */
.content-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 9999;
  align-items: center;
}

.lang-switch img { 
  width: 36px; 
  height: 24px; 
  object-fit: cover; 
  cursor: pointer; 
  border-radius: 4px; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.25); 
  transition: transform .14s ease; 
} 

.sms-phone img { 
  width: 48px; 
  height: 48px; 
  object-fit: contain;
  cursor: pointer; 
  border-radius: 50%; 
  padding: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2); 
  transition: all .2s ease; 
} 

.sms-phone img:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#send-sms { 
  background: #09C32C; 
} 

#phone { 
  background: #2196F3; 
}

.lang-switch img:hover { transform: scale(1.08); }
.sms img:hover { transform: scale(1.08); }
