/* =====================
   RESET Y VARIABLES
   ===================== */
:root {
  --color-bg: #fff;
  --color-primary: #b17a89;
  --color-secondary: #fff;
  --color-accent: #d2a8ad;
  --color-deep: #894c5b;
  --color-soft: #b27a89;
  --color-logo: #864958;
  --color-text: #894c5b;
  --color-muted: #b27a89;
  --color-hover: #b17a89;
  --color-shadow: rgba(137,76,91,0.08);
  --menu-z: 1000;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/transparent-logo.png');
  background-repeat: repeat;
  background-size: 300px;
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
}

/* =====================
   HEADER Y LOGO
   ===================== */
header {
  width: 100vw;
  max-width: 100vw;
  min-height: 180px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-deep) 100%);
  color: var(--color-secondary);
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.header-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  position: relative;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin: 0;
  color: var(--color-secondary);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}
.logo img {
  height: 60px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}
.logo span {
  color: var(--color-secondary);
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* =====================
   NAVEGACIÓN
   ===================== */
nav {
  margin: 0;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

nav a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width 0.3s ease;
  margin: 0 auto;
}

nav a:hover {
  color: var(--color-secondary);
  transform: translateY(-2px);
}

nav a:hover::after {
  width: 100%;
}

@media (max-width: 700px) {
  .header-content {
    flex-direction: column;
    padding: 0.5rem;
  }
  
  .logo {
    margin-bottom: 0.5rem;
  }
  
  .logo img {
    height: 40px;
  }
  
  .logo span {
    font-size: 1.4rem;
  }
  
  nav {
    width: 100%;
  }
  
  nav ul {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border-radius: 0;
  }
  
  nav li {
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.6rem;
    margin: 0.1rem 0;
  }
  
  nav a {
    font-size: 1rem;
    width: 100%;
    display: block;
    padding: 0.5rem 0.8rem;
    text-align: center;
  }
  
  nav a::after {
    display: none;
  }
  
  nav a:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.15);
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0.3rem;
  }
  
  .logo {
    margin-bottom: 0.3rem;
  }
  
  .logo img {
    height: 35px;
  }
  
  .logo span {
    font-size: 1.2rem;
  }
  
  nav ul {
    gap: 0.2rem;
    padding: 0.2rem;
  }
  
  nav li {
    border-radius: 0.5rem;
    margin: 0.1rem 0;
  }
  
  nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }
}

/* =====================
   HERO/BANNER
   ===================== */
.hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  left: 0;
  right: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  z-index: 1;
  height: 120px;
  min-height: 80px;
  max-height: 140px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-deep) 100%);
  overflow: hidden;
}
.hero-img {
  width: 100vw;
  max-width: 100vw;
  left: 0;
  right: 0;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(0.96) saturate(1.04);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border: none;
  background: var(--color-bg);
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(177,122,137,0.98) 0%, rgba(137,76,91,0.95) 100%);
  z-index: 1;
}
.banner-leyenda {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: auto;
  max-width: 800px;
}
.banner-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--color-secondary);
  font-weight: 500;
  letter-spacing: 2px;
  margin: 0;
  text-transform: uppercase;
  position: relative;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.banner-main::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}
.banner-sub {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  color: var(--color-secondary);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 2px 16px #b17a89, 0 1px 0 #fff;
  margin-top: 0.2rem;
  background: linear-gradient(90deg, #fff 10%, #b17a89 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  display: inline-block;
}

/* =====================
   MAIN Y SECCIONES
   ===================== */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
}
section {
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}
section.visible {
  opacity: 1;
  transform: none;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
}
h3 {
  text-align: center;
}

/* =====================
   CARDS DE TRATAMIENTOS
   ===================== */
.tratamientos {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
}
.tratamiento {
  background: var(--color-secondary);
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px var(--color-shadow);
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 48%;
  padding: 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s, border 0.3s;
  border: 1.5px solid var(--color-accent);
  overflow: hidden;
}
.tratamiento:hover {
  box-shadow: 0 8px 32px var(--color-shadow);
  border: 1.5px solid var(--color-primary);
  background: var(--color-bg);
}
.tratamiento img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
  box-shadow: none;
  border: none;
  display: block;
}
.tratamiento h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--color-primary);
  margin: 1.2rem 0 0.5rem 0;
  font-weight: 700;
  text-align: center;
}
.tratamiento p, .aparatos {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-text);
  margin: 0 1.2rem 0.7rem 1.2rem;
  text-align: center;
}
.aparatos {
  color: var(--color-muted);
  font-style: italic;
  margin-bottom: 1.2rem;
}

/* =====================
   ACERCA DE NOSOTROS
   ===================== */
.about-img {
  width: 100%;
  max-width: 400px;
  border-radius: 1.2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 24px var(--color-shadow);
  object-fit: cover;
  aspect-ratio: 4/3;
  display: block;
  border: 1.5px solid var(--color-accent);
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
}
.about-text {
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 600px;
}
.about-text p {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  color: var(--color-text);
}

/* =====================
   CONTACTO
   ===================== */
.contacto {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-deep) 100%);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  width: 100%;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}
.contacto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('img/transparent-logo.png') repeat;
  background-size: 200px;
  opacity: 0.05;
  pointer-events: none;
}
.contact-info {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.redes {
  margin-top: 1rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
}
.redes a {
  color: var(--color-primary);
  font-size: 2.2rem;
  transition: all 0.3s ease;
  background: var(--color-secondary);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}
.redes a:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--color-accent);
}
.contact-direccion {
  margin-top: 2rem;
  text-align: center;
  color: var(--color-secondary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.contact-direccion i {
  font-size: 1.4rem;
}
.contact-map {
  width: 100%;
  max-width: 800px;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid var(--color-secondary);
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  text-align: center;
  padding: 1.2rem 0 1.2rem 0;
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin-top: 2rem;
}

/* =====================
   CARRUSEL DE FOTOS
   ===================== */
.carrusel-container, .carrusel-fotos {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}
.carrusel-fotos {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.carrusel-img {
  width: 100%;
  max-width: 600px;
  height: 280px;
  object-fit: cover;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px var(--color-shadow);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.6s;
  z-index: 1;
  pointer-events: none;
}
.carrusel-img.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1100px) {
  .hero {
    height: 90px;
    min-height: 60px;
    max-height: 120px;
  }
}
@media (max-width: 700px) {
  .header-content {
    flex-direction: column;
    padding: 1rem;
  }
  .logo {
    margin-bottom: 1rem;
  }
  nav {
    width: 100%;
  }
  nav ul {
    width: 100%;
    justify-content: center;
  }
  .contacto {
    padding: 2rem 1rem;
    border-radius: 1rem;
  }
  .contact-info h3 {
    font-size: 1.5rem;
  }
  .redes {
    gap: 1.5rem;
  }
  .redes a {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
  .contact-direccion {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
  .hero {
    height: 100px;
    min-height: 70px;
    max-height: 110px;
  }
  .banner-leyenda {
    padding: 0.8rem 1.5rem;
  }
  .banner-main {
    font-size: 1.1rem;
    letter-spacing: 1.5px;
  }
  .banner-sub {
    font-size: 0.7rem;
    line-height: 1.2;
    max-width: 95vw;
    white-space: normal;
    word-break: break-word;
  }
  .tratamientos {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .tratamiento {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 1.2rem;
    box-sizing: border-box;
  }
  .carrusel-container {
    max-width: 98vw;
  }
  .carrusel-img {
    max-width: 98vw;
    height: 160px;
    border-radius: 0.7rem;
  }
  .carrusel-container, .carrusel-fotos {
    min-height: 220px;
  }
}
@media (max-width: 600px) {
  main {
    padding: 1.2rem 0.5rem 0.5rem 0.5rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .lema {
    font-size: 1rem;
    padding: 0.5rem 0.7rem;
  }
  .hero {
    height: 80px;
    min-height: 60px;
    max-height: 90px;
  }
  .banner-main {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
  .banner-sub {
    font-size: 0.7rem;
  }
  .tratamiento img {
    height: 140px;
  }
  .redes a {
    font-size: 1.5rem;
    padding: 0.5rem;
  }
  .carrusel-img {
    height: 100px;
    border-radius: 0.5rem;
  }
  .carrusel-container, .carrusel-fotos {
    min-height: 140px;
  }
  .logo {
    margin: 2rem 0 0.6rem 0;
  }
  .logo img {
    height: 42px;
  }
  .logo span {
    font-size: 1.4rem;
  }
}
/* Ajuste especial para pantallas muy pequeñas tipo Samsung S20+ o menos */
@media (max-width: 412px) {
  .hero {
    min-height: 36px;
    height: auto;
    max-height: none;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }
}
@media (max-width: 400px) {
  .carrusel-img {
    height: 100px;
    border-radius: 0.5rem;
  }
  .carrusel-container, .carrusel-fotos {
    min-height: 140px;
  }
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  color: var(--color-text);
  font-size: 1.1rem;
  line-height: 1.6;
}

.glow-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.glow-tip-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  width: 100%;
  max-width: 350px;
}

.glow-tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.glow-tip-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.glow-tip-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--color-primary);
  margin: 1rem 1.5rem 0.5rem;
  line-height: 1.4;
}

.glow-tip-card p {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 1.5rem 1.5rem;
  font-weight: 400;
}

@media (max-width: 700px) {
  .glow-tips-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .glow-tip-card img {
    height: 180px;
  }
} 