/* ======== VARIABLES & GENERAL STYLES ======== */
:root {
    --primary-green: #495f3f;
    --accent-gold: #d6d2c4;
    --text-light: #f5f5dc;
    --text-medio:#1a1e19;
    --text-dark: #333;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Lato', sans-serif;
    --font-tertiary: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-tertiary);
}

/* ======== NAVBAR ======== */
.navbar {
    transition: background-color 0.4s ease-in-out, padding 0.4s ease;
    background-color: var(--accent-gold);
}
.navbar-logo{
    height: 80px;
}
.navbar .nav-link {
    color: var(--primary-green);
    font-weight: 700;
    font-size:large;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    background-color: var(--text-light);
    color: var(--primary-green);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    transform: scale(1.05);
}
.btn-contact,
a .btn .btn-cta,
.btn-volver{
    font-family: var(--font-secondary);
    background-color: var(--accent-gold);
    color: var(--primary-green);
    font-weight: 700;
    font-size:large;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
}

.btn-contact:hover,
.btn .btn-cta:hover,
.btn-volver:hover{
    background-color: var(--text-light);
    color: var(--primary-green);
    transform: scale(1.05);

}

/* ======== HERO SECTION ======== */
#hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* La propiedad clave */
    z-index: -2;
}

#hero .overlay,
.overlay-cover {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--primary-green);
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive font size */
    font-weight: 700;
    
}
#hero .hero-button-container{
    margin-top: 15px;
    padding-top: 15px;
}
.hero-button-container .btn-cta {
    position: absolute; /* Posiciona el elemento respecto a su contenedor padre (#hero) */
    bottom: 8vh;      /* Lo separa un 8% de la altura de la pantalla desde abajo */
    left: 50%;        /* Lo mueve al 50% del ancho del contenedor */
    transform: translateX(-50%); /* <-- AÑADE ESTA LÍNEA */    
    z-index: 3;       /* Asegura que esté por encima del overlay */
    background-color: var(--accent-gold);
    color: var(--text-dark);
    font-family: var(--font-secondary);
    font-weight: bolder;
    font-size:18px !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-button-container .btn-cta:hover {
    background-color: var(--text-light);
    color: var(--primary-green);
    transform: translateX(-50%) scale(1.05);
}
/* ======== SECCIÓN DE QUIENES SOMOS ======== */
#quienesSomos{
    color: var(--text-medio);
}
#bg-img{    
    opacity: 0.4;
}
.text-quienes{
    font-size: 1.15rem;
    text-align: justify;
    line-height: 1.6;
}
.text-quienes .profesionales-list{
    list-style: none;
}

/* ======== SECCIÓN DE SERVICIOS ======== */
/* ======== BOTÓN FLOTANTE DE WHATSAPP ======== */
.whatsapp-fab {
    position: fixed;         /* Se mantiene fijo en la pantalla */
    bottom: 20px;            /* Distancia desde abajo */
    right: 15px;             /* Distancia desde la derecha */
    width: 60px;             /* Ancho */
    height: 60px;            /* Alto */
    background-color: #25D366; /* Color oficial de WhatsApp */
    color: #FFF;             /* Color del ícono (blanco) */
    border-radius: 50%;      /* Lo hace circular */
    font-size: 30px;         /* Tamaño del ícono */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2); /* Sombra para que destaque */
    z-index: 1000;           /* Se asegura que esté por encima de todo */
    transition: transform 0.3s ease; /* Transición suave para el hover */
}

.whatsapp-fab:hover {
    transform: scale(1.1); /* Agranda el botón al pasar el mouse */
}
/* ======== SECCIÓN DE CONTACTO ======== */

.main-page {
    position: relative;
    padding: 0;
    margin: 0;
}

.bg-cover{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* La propiedad clave */
    z-index:-2;
    overflow: hidden;
}


.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-right: 15px;
}

.contact-info a {
    text-decoration: none;
}
.contact-info a:hover {
    text-decoration: underline;
}
/* Estilos para el formulario */
.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: .75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(73, 95, 63, 0.25);
}

.btn-submit {
    background-color: var(--primary-green);
    color: var(--text-light);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    color: #3a4a31;
    background-color:var(--text-light);
    border:var(--text-dark) 2px solid;
    transform: translateY(-3px);
}
/* ======== FOOTER ======== */
.footer {
    background-color:  var(--accent-gold);
    transition: background-color 0.4s ease-in-out, padding 0.4s ease;
    color: var(--primary-green);
    padding: .5rem 0;
}

.social-icons a {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin: 0 0.75rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--text-light);
}
.text-footer{
    color: var(--primary-green);
    font-size: 15px;
}
/* ======== MEDIA QUERIES ======== */
@media (max-width: 768px) {
    .navbar .nav-link,
    .btn-contact,
    .btn .btn-cta{
        font-size: 15px;
    }
    .hero-button-container{
        font-size: 12px !important;
        border-radius: 15px;
        padding-top: 0px;
        

    }
   .hero-button-container .btn-cta{
        bottom: 2vh;
   }
   .text-quienes{
    font-size: 0.8rem;
    text-align: justify;
    line-height: 1.5;
    margin-top: 10px;
    padding: 10px;
    }
    .text-quienes .list-quienes{
        padding-left: 10px;
    }
    .text-quienes .profesionales-list{
        list-style: none;
        padding-left: 0;
    }
    .social-icons a{
        font-size: 1.5rem;
        margin: 0 0.5rem;
    }
    .text-footer{
        font-size: 10px;
    }
}

/* TABLETS (≤ 992px) */
@media (max-width: 992px) {
 
  .map-container iframe {
    width: 100%;
    height: 350px;
  }
}

/* CELULARES (≤ 576px) */
@media (max-width: 576px) {
  

  .contact-info li {
    font-size: 0.95rem;
  }
  .map-container iframe {
    height: 280px;
  }
  .btn-submit {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  .social-icons a {
    font-size: 1.2rem;
  }
  .text-footer {
    font-size: 0.75rem;
  }
}
