/*VARIABLES Y CONFIGURACIÓN BASE*/

:root {
    --color-primary: #76a867;       
    --color-dark-green: #558b46;    
    --color-turquoise: #1CD6B9;     
    --color-turquoise-dark: #14bfa3;
    --color-light-bg: #FFF0E5;      
    --color-white: #ffffff;
    --color-text: #4a4a4a;
    
    --font-title: 'Dancing Script', cursive;
    --font-fancy: 'Sansita Swashed', cursive;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; 
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}
section {
    padding-top: 120px;
    padding-bottom: 100px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto; 
}

/*HEADER Y NAVEGACIÓN*/
.main-header {
    width: 100%;
    position: relative;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    padding: 0 40px; 
    position: fixed; 
    transition: all 0.4s ease; 
    background-color: transparent;
}
.navbar.scrolled {
    background-color: white; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.1); 
    padding: 0 40px;
}
.navbar.scrolled .logo {
    box-shadow: none; 
    background-color: transparent;
    height: 80px; 
    border-radius: 0; 
    padding-bottom: 0;
}
.navbar.scrolled .logo-img {
    height: 60px; 
    margin-top: 5px; 
}
.navbar.scrolled .nav-links a {
    color: #555; 
    text-shadow: none; 
}
.navbar.scrolled .nav-links a:hover {
    color: var(--color-turquoise); 
.navbar.scrolled .nav-links a::after {
    background-color: var(--color-turquoise);
}
}

.navbar.scrolled .menu-toggle {
    color: #333; 
}

.logo {
    background-color: white;
    padding: 0 15px 10px 15px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 110px; 
}

.logo-img {
    margin-top: 5px;
    height: 90px;
    width: auto;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px; 
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white; 
    font-weight: 600;
    font-size: 1rem; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); 
    padding: 10px 0;
    position: relative; 
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;           
    height: 3px;        
    bottom: 0;
    left: 50%;
    background-color: var(--color-turquoise); 
    transform: translateX(-50%); 
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover { color: var(--color-turquoise); }
.nav-links a:hover::after { width: 100%; }

.menu-toggle { display: none; }

/*HERO SECTION (BANNER)*/

.hero-section {
    height: 60vh; 
    min-height: 400px;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('Imagenes/fondo-familiar.jpg');
    background-size: cover;
    background-position: center top;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    padding-top: 80px; 
}

.hero-content h1 {
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    padding: 0 10px;
}

/*COMPONENTES GLOBALES (TÍTULOS) */

.master-title-badge {
    font-family: var(--font-fancy);
    font-size: 1.8rem;
    padding: 5px 40px;
    border-radius: 30px 0px 30px 0px; 
    text-align: center;
    box-shadow: 2px 4px 8px rgba(0,0,0,0.15);
    width: fit-content;
    margin: 0 auto;
    color: black;
    -webkit-text-stroke: 1px white; 
    position: relative;
    z-index: 10;
    transform: translateY(-30px);
}

.master-title-badge h2 {
    font-size: 3rem;
    margin: 0;
    font-weight: 600;
}

.section-header {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}
.section .master-title-badge {
    transform: none !important;
    margin: 0 !important;
}
.badge-teal {
    background-color: var(--color-turquoise);
    border: 3px solid white;
}

.badge-white {
    background-color: white;
    border: 3px solid var(--color-turquoise);

}


/*SECCIONES DE CONTENIDO*/

/*1. NOSOTROS */
.about-section.container {
    width: 100%;
    max-width: 1600px;
}

.about-grid {
    display: flex;
    align-items: center; 
    gap: 60px;
    width: 100%;
    flex-wrap: wrap;
}

.about-text {
    flex: 1.5;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-card {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
    color: #333;
    position: relative;
    z-index: 1;
    width: 100%;
}

.intro-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.8;
}

.certification-badge {
    background-color: #f9f9f9;
    border-left: 5px solid var(--color-turquoise);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
}
.certification-badge i { font-size: 2rem; color: #FFD700; }
.certification-badge p { font-size: 0.9rem; color: #555; margin: 0; line-height: 1.4; }

.values-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.value-item { display: flex; align-items: flex-start; gap: 20px; }

.value-icon {
    background-color: #e0fcf9;
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-turquoise);
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.value-content h3 {
    font-family: var(--font-fancy);
    color: var(--color-turquoise);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.value-content p { font-size: 0.95rem; color: #666; line-height: 1.5; margin: 0; }

.about-image-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    position: relative; 
}

.about-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 30px 0 30px 0; 
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.about-img:hover { transform: scale(1.02); }

.exp-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--color-turquoise);
    color: white;
    padding: 20px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 4px solid white;
    transform: rotate(-10deg);
    z-index: 2; 
}
.exp-badge .big-num { font-weight: 800; font-size: 1.8rem; line-height: 1; }
.exp-badge .small-text { font-size: 0.8rem; line-height: 1.1; margin-top: 5px; }


/*2. SERVICIOS*/

.services-section {
    background-color: var(--color-light-bg);
    font-family: var(--font-body);
}

.services-container {
    display: flex;
    flex-direction: row;
    align-items: center; 
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.service-display-card {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto; 
    transition: opacity 0.2s ease;
}

.card-header-color {
    background-color: var(--color-turquoise); 
    padding: 15px;
    text-align: center;
    color: white;
}

.card-body {
    padding: 50px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-main-img {
    width: 100%;
    height: 350px; 
    object-fit: cover; 
    border-radius: 10px;
    margin-bottom: 20px;
}

.services-right-column {
    flex: 1; 
    min-width: 300px;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: flex-start;
}

.services-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.service-btn {
    background-color: var(--color-turquoise);
    color: white;
    padding: 15px 20px 15px 30px; 
    border-radius: 35px;
    border: 2px solid white;
    display: flex;
    align-items: center; 
    justify-content: flex-start; 
    text-align: left;
    width: 100%; 
    gap: 15px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.service-btn:hover {
    transform: scale(1.05) translateY(-3px);
    background-color: var(--color-turquoise-dark);
}


/*3. HORARIOS*/

.timeline-section {
    background-color: white;
    text-align: center;
}

.timeline-container {
    display: flex; 
    width: 100%;
    border-top: 5px solid var(--color-turquoise); 
    margin-top: 50px;
    padding-bottom: 40px; 
}

.timeline-item {
    flex: 1 1 0; 
    min-width: 145px; 
    background-color: #f8fcfb; 
    border-right: 1px solid rgba(0,0,0,0.05); 
    position: relative;
    transition: all 0.3s ease; 
    cursor: pointer;
    height: 220px; 
    overflow: hidden; 
}
.timeline-item:last-child { border-right: none; }

.timeline-item:hover {
    background-color: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); 
    height: 330px; 
    min-height: 320px; 
    transform: translateY(10px); 
    z-index: 10; 
    border-top: 5px solid var(--color-turquoise); 
    margin-top: -5px; 
    border-radius: 0 0 15px 15px; 
}

.time-header {
    background-color: transparent;
    color: #888;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 20px 5px; 
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: color 0.3s;
}
.timeline-item:hover .time-header { color: var(--color-turquoise); font-size: 1rem; }

.time-icon {
    font-size: 2.2rem; 
    color: #ccc; 
    padding: 25px 0; 
    transition: all 0.3s;
}
.timeline-item:hover .time-icon { color: var(--color-turquoise); transform: scale(1.1); }

.time-body { padding: 0 15px 25px 15px; }
.time-body h3 {
    font-family: var(--font-body);
    color: #333;
    font-size: 1.2rem; 
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}
.time-body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    opacity: 0; 
    transform: translateY(10px);
    transition: all 0.3s ease 0.1s; 
}
.timeline-item:hover .time-body p { opacity: 1; transform: translateY(0); }

.timeline-footer {
    margin-top: 40px;
    font-size: 1.1rem;
    color: #555;
    font-family: var(--font-fancy);
}


/*4. TARIFAS */

.pricing-section {
    background-color: var(--color-light-bg);
}

.pricing-grid {
    display: flex;
    justify-content: center; 
    align-items: stretch;
    gap: 30px; 
    flex-wrap: wrap; 
    margin-top: 40px;
}

.pricing-card-static {
    background: white;
    flex: 1; 
    min-width: 280px; 
    max-width: 320px; 
    border-radius: 20px;
    border: 1px solid #eee;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    padding: 20px 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.pricing-card-static:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(28, 214, 185, 0.2); 
    border-color: var(--color-turquoise);
}

.pricing-card-static h3 {
    font-family: var(--font-fancy);
    font-size: 1.35rem;
    color: #333;
    margin-bottom: 15px;
    height: 50px; 
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.pricing-card-static .description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    min-height: 100px; 
}

.pricing-card-static img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 15px;
    margin-top: 15px;
}

.price-tag {
    background-color: #f0fdfa;
    border: 1px solid var(--color-turquoise);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.price-label { display: block; font-size: 0.8rem; color: #666; text-transform: uppercase; font-weight: 600; }
.price-amount { display: block; font-size: 1.25rem; font-weight: 800; color: var(--color-turquoise); }
.price-amount small { font-size: 0.8rem; color: #888; font-weight: 400; }


/*5. OPINIONES*/
.testimonial-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;     
    width: 100%;
    max-width: 350px;
    margin: 0 auto;         
    position: relative;
}

.card-header-testimonial {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;  
    margin-bottom: 20px;
    width: 100%;
}

.user-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-turquoise);
    padding: 3px;
    background-color: white;
}

.card-header-testimonial h3 {
    font-family: var(--font-fancy);
    font-size: 1.4rem;
    color: #333;
    margin: 0;
}

.stars {
    color: #FFD700; 
    font-size: 0.9rem;
    margin-top: 5px;
}

.testimonial-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: var(--color-turquoise);
    opacity: 0.2;
    font-family: sans-serif;
    line-height: 1;
}
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    list-style: none;
    padding: 0;
    margin: 0;
}

.carousel-slide {
    min-width: 33.3333%;
    padding: 20px 10px;
    box-sizing: border-box;
}

.carousel-slide .testimonial-card {
    width: 100%;
    max-width: 400px; 
    margin: 0; 
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--color-turquoise);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--color-turquoise);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/*6. CONTACTO*/
.contact-section {
    background-color: var(--color-light-bg);
    
}

.contact-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch; 
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;
}

.contact-info-card {
    background-color: white;
    padding: 40px; 
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    flex: 1; 
    min-width: 320px;
    max-width: 450px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
}

.icon-wrapper { position: relative; display: inline-block; margin-bottom: 30px; }
.main-icon { font-size: 6rem; color: #333; }
.sub-icon { position: absolute; top: -10px; right: -10px; font-size: 3rem; color: var(--color-turquoise); background: white; border-radius: 50%; padding: 5px; }

.contact-warm-message { text-align: center; width: 100%; }
.contact-warm-message h3 { font-family: var(--font-fancy); color: var(--color-turquoise); font-size: 2rem; margin-bottom: 20px; }
.contact-warm-message p { font-size: 1rem; color: #666; line-height: 1.6; margin-bottom: 25px; padding: 0 10px; }

.response-time {
    font-weight: 600;
    color: var(--color-dark-green);
    background-color: #f0fdfa; 
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9rem !important;
}
.response-time i { margin-right: 5px; }

.contact-form {
    flex: 1.5; 
    min-width: 320px;
    max-width: 600px;
    width: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    gap: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: 10px;
    background-color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-turquoise);
    box-shadow: 0 4px 15px rgba(28, 214, 185, 0.2);
}

.submit-btn {
    background-color: var(--color-turquoise);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.submit-btn:hover { transform: scale(1.02); background-color: var(--color-turquoise-dark); }


/*7. LOCALIZACIÓN*/
.location-section {
    background-color: white;
}

.map-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 5px solid white;
}

.map-link {
    display: block;
    width: 100%;
    height: 450px;
    position: relative;
    text-decoration: none;
}
.static-map-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.map-link:hover .static-map-img { transform: scale(1.05); }

.address-card-overlay {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    text-align: center;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}
.pin-icon { color: #FF4D4D; font-size: 2rem; margin-top: 5px; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }


/*8.GALERÍA*/

.navbar.scrolled {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled .nav-links a {
    color: #333 !important;
    text-shadow: none;
}

.navbar.scrolled .menu-toggle {
    color: #333 !important;
}

.navbar.scrolled .nav-links a:hover {
    color: var(--color-turquoise) !important;
}

.gallery-section {
    background-color: #f9f9f9;
    min-height: 80vh;
    padding-top: 60px; 
    padding-bottom: 80px;
}

.gallery-section .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    text-align: center;
    width: 100%;              
}

.gallery-section .master-title-badge {
    transform: none !important; 
    margin: 0 auto 20px auto !important; 
    box-shadow: 2px 4px 8px rgba(0,0,0,0.1);
    display: inline-block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    height: 250px; 
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 214, 185, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/*LIGHTBOX MODAL*/

.lightbox-modal {
    display: none; 
    position: fixed; 
    z-index: 5000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.95); 
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    animation: zoomIn 0.3s;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-top: 15px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--color-turquoise);
    text-decoration: none;
    cursor: pointer;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  transition: 0.3s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  z-index: 5010;
  text-decoration: none;
  background-color: rgba(0,0,0,0.3);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 0;
}

.prev:hover, .next:hover {
  background-color: rgba(28, 214, 185, 0.8);
  color: white;
}

@keyframes zoomIn {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/*6. FOOTER Y ELEMENTOS FLOTANTES*/

.main-footer {
    background-color: white;
    padding: 60px 0 20px 0;
    border-top: 1px solid #eee;
    position: relative;
    margin-top: 50px;
}

.scroll-top-btn {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 5;
}
.scroll-top-btn:hover { background-color: var(--color-turquoise); color: white; top: -30px; }

.footer-content { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.footer-social { display: flex; gap: 20px; }
.social-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s;
    text-decoration: none;
}
.social-circle:hover { transform: scale(1.1) rotate(10deg); }
.insta { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.tiktok { background-color: #000; }
.face { background-color: #1877F2; }

.footer-split { display: flex; justify-content: space-between; align-items: center; width: 100%; flex-wrap: wrap; gap: 40px; }
.footer-logo img { height: 100px; margin-bottom: 10px; }
.footer-logo h3 { font-family: var(--font-fancy); color: var(--color-turquoise); font-size: 1.5rem; }
.footer-contact-list { display: flex; flex-direction: column; gap: 15px; }
.contact-item { display: flex; align-items: center; gap: 15px; color: #555; }
.footer-copyright { margin-top: 20px; font-size: 0.8rem; color: #999; }

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover { background-color: #128c7e; transform: scale(1.1); }



/*7. RESPONSIVE DESIGN*/

@media (max-width: 900px) {

    /* --- 1. GLOBAL & TIPOGRAFÍA --- */
    html {
        font-size: 14px; /* Base reducida */
    }

    /* Ajuste de textos de cuerpo */
    p, .about-text p, .text-card p, .hero-content p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        color: #555;
        margin-bottom: 15px;
    }

    /* Ajuste de subtítulos */
    h3, h4, .text-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 10px;
    }

    /* Títulos de Sección (Etiquetas) */
    .badge-teal, .badge-white, .master-title-badge {
        transform: none !important;
        margin: 0 0 20px 0 !important;
        top: 0;
        padding: 5px 15px !important;
    }

    .master-title-badge h2, .badge-teal h2, .badge-white h2 {
        font-size: 2rem !important;
    }
    
    .section-header { margin-bottom: 20px; }

    /* Reset de Layout General (Columnas) */
    .about-grid, .services-container, .contact-container, .map-wrapper, 
    .footer-split, .timeline-container, .pricing-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Anchos al 100% */
    .about-text, .about-image-container, .services-right-column, 
    .contact-info-card, .contact-form, .testimonial-card, 
    .pricing-card-static, .map-column, .form-column, .text-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
    }
    
    .text-card { padding: 20px 15px; }


    /* --- 2. HEADER Y NAVEGACIÓN --- */
    .navbar {
        position: fixed;
        top: 0; left: 0; width: 100%;
        padding: 10px 20px;
        background-color: transparent;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s ease;
        z-index: 3000;
    }

    /* Estado Scroll (Barra blanca) */
    .navbar.scrolled {
        background-color: white !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 5px 20px;
    }

    .logo { height: 60px; padding: 0 10px 5px; border-radius: 0 0 10px 10px; }
    .logo-img { height: 45px; margin-top: 2px; }

    /* Botón Hamburguesa */
    .menu-toggle {
        display: block;
        background: none; border: none;
        font-size: 1.8rem; color: white;
        cursor: pointer; z-index: 2001;
        margin-top: 8px; margin-right: 0;
        transition: transform 0.3s ease;
    }
    
    /* Cambio de color del botón según fondo */
    .navbar.scrolled .menu-toggle,
    body.menu-open .menu-toggle,
    .navbar .menu-toggle .fa-times {
        color: #333 !important;
    }

    /* Menú Flotante (Burbuja) */
    .nav-links {
        position: fixed; top: 80px; right: 20px;
        width: 220px; height: auto;
        background-color: white;
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        display: flex; flex-direction: column;
        padding: 15px 0; gap: 0;
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 2000;
    }
    
    /* Triángulo decorativo */
    .nav-links::before {
        content: ''; position: absolute; top: -8px; right: 15px;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid white;
    }

    .nav-links.active {
        opacity: 1; transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    /* Enlaces del menú */
    .nav-links a {
        font-family: var(--font-body);
        font-size: 1rem; font-weight: 500;
        color: #555; text-decoration: none;
        text-align: center; padding: 12px 0;
        border-bottom: 1px solid #f5f5f5;
        width: 100%; transition: background 0.2s;
        display: block;
    }
    .nav-links a::after { display: none; }
    .nav-links a:last-child { border-bottom: none; }
    
    .nav-links a:hover, .nav-links a:active {
        background-color: #f9f9f9;
        color: var(--color-turquoise);
    }


    /* --- 3. PORTADA (HERO) --- */
    .hero-section {
        height: 40vh; min-height: 250px;
        padding-top: 80px; align-items: center;
    }
    .hero-content h1 {
        font-size: 1.6rem; line-height: 1.3; padding: 0 15px;
    }

    /* Badge "24/7" */
    .exp-badge {
        width: 90px !important; height: 90px !important;
        right: 10px !important; bottom: -20px !important;
        padding: 5px !important;
        display: flex !important; flex-direction: column !important;
        justify-content: center !important; align-items: center !important;
        text-align: center !important;
    }
    .exp-badge .big-num {
        font-size: 1.4rem !important; line-height: 1 !important; margin-bottom: 2px !important;
    }
    .exp-badge span, .exp-badge p {
        font-size: 0.7rem !important; line-height: 1.1 !important; font-weight: 400 !important;
    }


    /* --- 4. SECCIONES Y ESPACIADO --- */
    .about-section.container, .services-section, .timeline-section,
    .pricing-section, .contact-section, .location-section {
        padding-top: 50px;
        padding-bottom: 40px;
    }


    /* --- 5. SERVICIOS --- */
    .services-section { padding-top: 10px !important; }
    .services-section .section-header { margin-bottom: 20px; margin-top: 0; }
    .services-section .master-title-badge { margin-top: 0 !important; }
    
    .service-btn {
        padding: 10px 15px; font-size: 0.9rem; margin-bottom: 5px;
    }


    /* --- 6. HORARIOS (ACORDEÓN) --- */
    .timeline-container {
        flex-direction: column; align-items: stretch;
        border-top: none; border-left: 4px solid var(--color-turquoise);
        padding: 0; margin-left: 10px; margin-top: 15px;
        width: 95%;
    }

    .timeline-item {
        width: 100%; height: 65px;
        flex: 0 0 auto; overflow: hidden;
        display: flex; flex-direction: row; align-items: center;
        background: white; margin-bottom: 5px;
        border-radius: 0 10px 10px 0; border-bottom: 1px solid #eee; border-right: none;
        padding: 5px 10px; position: relative;
        transition: all 0.3s ease-out; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    /* Puntito */
    .timeline-item::before {
        content: ''; position: absolute; left: -19px; top: 32px;
        width: 10px; height: 10px;
        background-color: var(--color-turquoise);
        border-radius: 50%; border: 2px solid white;
    }

    /* Estado Abierto */
    .timeline-item:active, .timeline-item:focus, .timeline-item:hover {
        height: auto; min-height: 150px;
        flex-direction: column; align-items: center; justify-content: center;
        background-color: white; z-index: 10;
        border-top: none; margin-top: 0;
        padding-bottom: 15px; transform: scale(1);
    }

    /* Contenido Interno */
    .time-header {
        width: 70px; color: var(--color-turquoise);
        font-weight: 700; font-size: 0.85rem;
        border: none; padding: 0; text-align: left;
    }

    .time-icon {
        display: none; font-size: 1.8rem; color: #ccc; margin: 8px 0;
    }
    .timeline-item:hover .time-icon, .timeline-item:active .time-icon {
        display: block; color: var(--color-turquoise);
    }

    .time-body { flex: 1; padding: 0; border: none; text-align: left; }
    .time-body h3 { margin: 0; font-size: 1rem; }
    .timeline-item:hover .time-body, .timeline-item:active .time-body { text-align: center; width: 100%; }

    .time-body p { display: none; font-size: 0.85rem; color: #666; margin: 0; }
    .timeline-item:hover .time-body p, .timeline-item:active .time-body p { display: block; margin-top: 5px; }


    /* --- 7. TESTIMONIOS Y CARRUSEL --- */
    #opiniones {
        padding-top: 40px !important; margin-top: -10px !important;
    }
    #opiniones .section-header { margin-bottom: 20px !important; }

    .carousel-container { padding: 0 5px; }
    .carousel-slide { min-width: 100%; padding: 0 5px; }
    .testimonial-card { padding: 20px 15px; }
    .user-img { width: 70px; height: 70px; }
    
    .carousel-btn { width: 30px; height: 30px; font-size: 0.9rem; background-color: rgba(255,255,255,0.9); }
    .prev-btn { left: 0; }
    .next-btn { right: 0; }
    .prev, .next { font-size: 30px; padding: 10px; }


    /* --- 8. MAPA Y FOOTER --- */
    .map-link { height: 250px !important; }

    /* Tarjeta de dirección (Reset para móvil) */
    .address-card-overlay {
        position: relative !important; top: auto !important; right: auto !important; left: auto !important;
        transform: none !important; margin: 0 !important;
        width: 100% !important; min-width: 0 !important;
        background-color: white; padding: 20px;
        border-radius: 0 0 20px 20px; box-shadow: none; border-top: 1px solid #eee;
        display: flex; flex-direction: column; align-items: center; text-align: center;
    }
    .address-text { font-size: 0.95rem; line-height: 1.5; }

    .contact-info-card { min-height: auto; margin-bottom: 20px; padding: 20px; }
    .footer-split { text-align: center; gap: 20px; }
    
    .whatsapp-float { width: 45px; height: 45px; font-size: 24px; bottom: 15px; right: 15px; }
}