/* === BARIAESTHETIC DESIGN SYSTEM === */

/* Variables CSS - Sistema de diseño */

@font-face {
    font-family: 'DreamCottage';
    src: url('/public/fonts/DreamCottage-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* === BARIAESTHETIC DESIGN SYSTEM === */

/* Variables CSS - Sistema de diseño */
:root {
    /* Colores principales */
    --primary-beige: #d4b896;
    --primary-light-beige: #e6d3b7;
    --primary-dark-beige: #c2a373;
    --accent-brown: #8b6f47;
    --text-dark: #2c2c2c;
    --text-light: #958b8b;
    --white: #ffffff;

    /* Paleta de fondos cream */
    --bg-cream-1: #f0ca8c;
    --bg-cream-2: #f0eae0;
    --bg-cream-3: #ede6db;
    --bg-cream-4: #ffcb7f;

    /* Tipografía */
    --font-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --font-weight-thin: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Espaciado responsive */
    --spacing-xs: clamp(0.5rem, 2vw, 0.75rem);
    --spacing-sm: clamp(0.75rem, 3vw, 1rem);
    --spacing-md: clamp(1rem, 4vw, 1.5rem);
    --spacing-lg: clamp(1.5rem, 5vw, 2rem);
    --spacing-xl: clamp(2rem, 6vw, 3rem);
    --spacing-xxl: clamp(3rem, 8vw, 4rem);

    /* Bordes */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 20px;
    --border-radius-xl: 50px;

    /* Sombras */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* === COMPONENTES REUTILIZABLES === */





.btn-outline {
    background: transparent;
    color: var(--primary-beige);
    border: 2px solid var(--primary-beige);
}

.btn-outline:hover {
    background: var(--primary-beige);
    color: var(--text-dark);
}

/* Utilidades de texto */
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

/* === LAYOUT PRINCIPAL === */

.hero-container {
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    background: linear-gradient(
        135deg,
        var(--bg-cream-1) 0%,
        var(--bg-cream-2) 30%,
        var(--bg-cream-3) 60%,
        var(--bg-cream-4) 100%
    );
    position: relative;
    overflow: hidden;
}


/* === HERO TEAM SECTION - AJUSTES DE IMAGEN COMPLETA === */

/* Base Desktop (No tocamos nada de como se ve en laptop) */
.hero-team-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background-color: #fdf9f0; /* Fondo crema para integrar la foto */
}

.hero-team-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.team-bg-img {
  padding-top: 50px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

/* ========================================
   RESPONSIVE (A partir de 1024px hacia abajo)
   ======================================== */

@media (max-width: 1024px) {
    .hero-team-section {
        height: auto !important; /* Permitimos que el contenedor se ajuste a la foto */
        min-height: auto !important;
        padding-top: 30px !important; /* Aire arriba para no pegar al header */
        padding-bottom: 20px !important;
    }

    .hero-team-container {
        height: auto !important;
    }

    .team-bg-img {
        height: auto !important; /* La imagen dicta su propia altura */
        width: 100% !important;
        object-fit: contain !important; /* IMAGEN COMPLETA SIEMPRE */
        padding-top: 0 !important; /* Quitamos el padding del desktop para controlar desde el padre */
    }
}

/* === CORRECCIÓN ESPECÍFICA PARA MÓVILES (768px y menos) === */
@media (max-width: 768px) {
    .hero-team-section {
        padding-top: 60px !important; /* Más aire en móvil para el menú */
        background-color: #fdf9f0;
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }

    .hero-team-container {
        width: 100vw !important;
    }

    .team-bg-img {
        width: 100% !important;
        display: block;
    }

    /* Si tienes texto debajo de la imagen en móvil */
    .hero-team-content {
        position: relative !important; /* El texto ya no tapa la foto, se pone abajo */
        background: none !important;
        padding: 2rem 1rem !important;
    }
    
    .team-text {
        margin: 0 !important;
        color: #333 !important; /* Cambiamos a oscuro si el fondo es crema */
    }
}
    /* === ABOUT SECTION === */
/* === ABOUT SECTION REVISADO === */
.about-section {
  padding: 5rem 2rem;
  background-color: #FDF7F2; /* El fondo que pediste */
}

.about-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* El texto ocupa un poco más de espacio */
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
  align-items: center;
}

.about-content h2 {
  font-size: 45px;
  color: #5B0010; /* Color vino tinto */
  font-family: 'DreamCottage' !important;
  font-weight: normal;
  text-align: left;
}

.about-content p {
  color: #5B0010; /* Un tono café más suave para lectura */
  line-height: 1.5;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  font-family: 'Roboto' !important;
  font-weight: 300;
  text-align: left;
}
.about-strong{
    font-family: 'Roboto' !important;
    font-weight: 300 !important;
}

/* Estilo para el banner del final */
.cta-banner {
  background-color: #5B0010;
  padding: 5px;
  text-align: center;
  border-radius: 8px;
  width: 69%;
}

.cta-banner p {
  color: #FFFFFF !important; /* Letras blancas para contraste */
  margin-bottom: 0;
  font-size: 0.94rem;
  letter-spacing: 1px;
  text-align: center;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 30px; /* Bordes redondeados del diseño */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Responsivo para móviles */
@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
    display: block;
  }
  .cta-banner{
      margin-bottom: 10px;
  }
  .about-content p {
    max-width: 100%;
  }
  .about-content h2 {
      font-size: 3rem;
  }
}

/* === PHILOSOPHY SECTION REVISADO === */
/* === PHILOSOPHY SECTION REVISADO === */
.philosophy-section {
    padding: 4rem 0; /* Quitamos padding lateral para que el fondo sea total */
    background: #5B0010; /* Fondo vino total */
    width: 100%;
    overflow: hidden;
    font-family: 'Roboto', sans-serif !important;
}

.philosophy-container {
    width: 100%;
    max-width: 1400px; /* Un poco más ancho para dar aire */
    margin: 0 auto;
    padding: 0 2rem;
}

.philosophy-title {   
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-bottom: 3rem;
  font-weight: 300 !important;
  line-height: 1.4;
  text-align: center;
  font-family: 'Roboto' !important;
}

.philosophy-content {
    display: grid;
    /* Las imágenes ocupan 600px y el texto el resto */
    grid-template-columns: 600px 1fr; 
    gap: 8rem;
    align-items: center;
    text-align: left;
}

/* Contenedor de las dos imágenes */
.philosophy-image-group {
    display: flex;
    gap: 1rem;
    height: 400px; /* Altura fija para que no se deformen */
}

.philosophy-image {
    flex: 1;
    height: 100%;
}

.philosophy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    display: block;
}

.philosophy-text {
    padding-right: 2rem;
}

.philosophy-subtitle {
    font-size: 1.5rem;
    font-family: 'DreamCottage' !important;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-weight: 300 !important;
    line-height: 1.3;
    text-align: left;
}

/* Fuente DreamCottage con el bloque crema */
.font-dream {
    font-family: 'DreamCottage'  !important;
    display: inline-block; /* Cambiado a inline-block para que el fondo se ajuste al texto */
    background: #FFF7F0;
    color: #5B0010;
    padding: 5px;
    border-radius: 15px;
    margin-top: 10px;
    font-size: 30px; /* Aumentado para que destaque */
    font-weight: normal;
}

.philosophy-description {
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 300 !important;
    line-height: 1.7;
    margin-top: 1.5rem;
    text-align: left;
    font-family: 'Roboto' !important;
}

/* Responsivo para tablets y móviles */
@media (max-width: 1100px) {
    .philosophy-content {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 2rem;
        display: block;
    }
    .philosophy-description{
        text-align: center;
    }
    
    .philosophy-image-group {
        height: 300px;
        order: 2; /* Imágenes abajo en móvil */
    }
    
    .philosophy-text {
        text-align: center;
        padding: 0;
        order: 1;
    }

    .font-dream {
        display: table; /* Para centrarlo con margin auto */
        margin: 10px auto 0;
    }
}
/*DOCTOR SECTION*/

/* --- SECCIÓN PRINCIPAL --- */
.doctors-section {
    padding: 6rem 2rem;
    background-color: #FFF7F0;
}

.doctors-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 380px 1fr; /* Ancho fijo para el título similar a la imagen */
    gap: 4rem;
    align-items: center;
}

/* --- TÍTULOS (ESTILO BARIAESTHETIC) --- */
.title-pre {
    display: block;
    font-size: 2rem;
    color: #5B0010;
    font-family: 'Playfair Display', serif;
}

.doctors-title-main {
    background-color: #5B0010;
    color: #FFF;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 15px;
    font-family: 'DreamCottage'  !important;
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 2rem;
}

.doctors-description {
    color: #5B0010;
    line-height: 1.5;
    font-size: 1.2rem;
    font-family: 'Roboto' !important;
    max-width: 100%;
    font-weight: 100;
}

/* --- EL GRID DE TARJETAS --- */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem; /* Más espacio entre tarjetas */
}

/* --- LA TARJETA (BORDE GRUESO E IRREGULAR) --- */
.doctor-card {
    background: #FFF7F0;
    border: 2px solid #5B0010; /* Borde más grueso y oscuro */
    /* Este es el truco para la forma irregular de la tarjeta */
    border-radius: 60px 20px 60px 20px; 
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
}

.doctor-card:hover {
    box-shadow: 0 15px 30px rgba(91, 0, 16, 0.08);
}

.doctor-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* --- TEXTO DENTRO DE LA TARJETA --- */
.doctor-name {
    color: #5B0010;
    font-size: 1.8rem; /* Nombres más grandes */
    font-family: 'DreamCottage' !important;
    margin-bottom: 5px;
    line-height: 1.1;
}

.doctor-specialty { 
  color: #5B0010;
  font-size: 0.85rem;
  margin-bottom: 15px;
  font-family: 'Roboto' !important;
  letter-spacing: 0.5px;
  font-weight: 300;
  line-height: 16px;
}

.doctor-action {
  background: #5B0010;
  color: #FFF;
  text-decoration: none;
  padding: 0px 14px;
  border-radius: 5px;
  font-family: 'Roboto' !important;
  font-size: 1rem;
  font-weight: 300 !important;
  text-transform: capitalize;
  display: inline-block;
}

/* --- EL AVATAR (FORMA DE "BLOB" / HUEVO) --- */
.doctor-avatar {
    width: 140px; /* Más grande como en la imagen */
   
    overflow: hidden;
    flex-shrink: 0;
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .doctors-container {
        display: block;
    }
    .doctors-description {
        margin: 0 auto 3rem auto;
    }
}

@media (max-width: 768px) {
    .doctors-grid {
        display: block;
    }
    .doctor-card {
        border-radius: 40px 15px; /* Ajuste para móvil */
        margin-bottom: 10px;
    }
}
/* === FACILITIES SECTION === */

.facilities-section {
  padding: 4rem 2rem;
  background: #5B0010; /* Color vino solicitado */
}

.facilities-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Encabezado: Título y Subtítulo */
.facilities-header {
  margin-bottom: 3.5rem;
  text-align: left;
}

.facilities-title {
    font-family: 'DreamCottage' !important;
    font-size: 2.8rem;
    font-weight: 100;
    color: #FFFFFF;
    margin-left: 25px;
}

.facilities-subtitle {
    font-family: 'DreamCottage' !important;
    display: inline-block;
    background: #FFF7F0;
    color: #5B0010;
    padding: 5px 25px;
    border-radius: 15px;
    font-size: 3rem;
}

/* Primera fila: 1 grande (60%) + 2 delgadas (40%) */
.facilities-row-top {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  height: 450px;
}

.facility-item {
  border-radius: 25px; /* Bordes más redondeados como en la imagen */
  overflow: hidden;
  transition: transform 0.3s ease;
}

.facility-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-item.large-main {
  flex: 0 0 60%;
}

.facilities-side {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.facility-item.thin {
  flex: 1;
}

/* Segunda fila: 3 iguales */
.facilities-row-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  height: 240px;
}

.facility-item:hover {
  transform: scale(1.02);
}

/* Responsivo */
@media (max-width: 768px) {
    .facilities-title {
        font-size: 1.9rem;
        margin-left: 0px;
    }
    
    .facilities-subtitle{
        font-size: 1.7rem;
    }

  .facilities-row-top {
    flex-direction: column;
    height: auto;
  }
  
  .facility-item.large-main {
    height: 300px;
  }
  
  /* En móvil mostramos las side para no perder contenido visual */
  .facilities-side {
    height: 200px;
  }
  
  .facilities-row-bottom {
    grid-template-columns: 1fr;
    height: auto;
  }

  .facility-item.equal {
    height: 220px;
  }
}
    /* === APPOINTMENT SECTION === */
    .appointment-section {
      padding: 10px;
      background: #FFFF;
      border-radius: 30px;
    }

    .appointment-container {
      max-width: 1200px;
      margin: 0 500px;
      display: grid;
      gap: 10px;
      align-items: center;
      border-radius: var(--border-radius-xl);
      overflow: hidden;
    }

    .appointment-content {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .appointment-title {
      font-size: clamp(1.5rem, 3vw, 2rem);
      color: var(--primary-dark-beige);
      margin-bottom: 1.5rem;
      font-weight: var(--font-weight-bold);
      line-height: 1.3;
    }
    
    .appointment-text-block{
        gap: 0;
    }

    .appointment-description {
      color: #5B0105;
      font-size: 1.2rem;
      line-height: 1.6;
      margin-bottom: 10px;
    }

    .appointment-details {
      color: var(--text-gray);
      font-size: 0.95rem;
      line-height: 1.5;
      margin-bottom: 2.5rem;
    }

    .appointment-btn {
      background: #5a7a9a;
      color: white;
      border: none;
      padding: 1rem 2rem;
      border-radius: var(--border-radius-xl);
      font-size: 1rem;
      font-weight: var(--font-weight-bold);
      cursor: pointer;
      transition: background 0.3s ease;
      align-self: flex-start;
    }

    .appointment-btn:hover {
      background: #4a6a8a;
    }

    .appointment-image {
      background: #e8e0d3;
      height: 100%;
      min-height: 400px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }

    .appointment-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    

      .about-container {
        grid-template-columns:1fr 1fr;
        gap: 2rem;
        text-align: center;
      }

      .about-image {
        min-height: 250px;
        font-size: 1.2rem;
      }

      .philosophy-content {
        grid-template-columns: 1fr 1fr;
        text-align: center;
      }

      .search-form {
        flex-direction: column;
        align-items: stretch;
      }

      .search-form select,
      .search-form input {
        min-width: auto;
        width: 100%;
      }

      .doctors-grid {
        grid-template-columns: 1fr 1fr;
      }

      .facilities-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
      }

      .facility-item.large {
        grid-row: auto;
      }

      .facility-bottom-row {
        grid-template-columns: 1fr;
      }

      .appointment-container {
        grid-template-columns: 1fr;
      }

      .appointment-content {
        padding: 2rem;
      }

      .appointment-image {
        min-height: 300px;
      }
    }

    @media (max-width: 480px) {
      

      .team-text {
        margin: var(--spacing-md);
        padding: var(--spacing-md);
      }
    }

/* ====================================
   SECCIÓN DE RESERVA DE CITA
   ==================================== */

.appointment-section {
    padding: 80px 20px;
    background: #FFF7F0;
}

.appointment-container {
    max-width: 1000px;
    margin: 0 auto;
}

.appointment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

/* Wrapper de imagen con botón */
.appointment-image-wrapper {
    position: relative;
    width: 100%;
}

.appointment-main-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 40px;
}



/* Imagen del equipo (derecha) */
.appointment-team-image {
    position: relative;
}

.team-appointment-img {
    width: 100%;
    height: auto;
    border-radius: 40px;
}

.appointment-content {
    gap: 0px ! important;
}

/* Responsive */
@media (max-width: 992px) {
    .appointment-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    
}

@media (max-width: 768px) {
    .appointment-section {
        padding: 60px 15px;
    }

    .appointment-main-img,
    .team-appointment-img {
        border-radius: 25px;
    }

   
}

@media (max-width: 480px) {
    .appointment-section {
        padding: 40px 15px;
    }

    
}