/* CSS Variables for Premium Aesthetic */
:root {
    /* Colors based on brand guidelines */
    --primary: #00B4D8;
    --primary-dark: #0077B6;
    --primary-light: #48CAE4;
    --secondary: #CAF0F8;
    --dark: #2B2D42;
    --text: #333333;
    --text-muted: #6C757D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Layout */
    --container-max: 1200px;
    --spacing-section: 4rem;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 180, 216, 0.15);
    --shadow-btn: 0 4px 15px rgba(0, 180, 216, 0.4);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section {
    padding: var(--spacing-section) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-2 {
    margin-top: 1rem;
}

.text-muted {
    color: var(--text-muted);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title.text-center {
    display: block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    text-align: center;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--primary-dark);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 48px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.2;
}

.logo-subtitle {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nav {
    display: none; /* Hide on mobile initially */
    gap: 2rem;
}

.nav a {
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: var(--spacing-section);
    background: linear-gradient(180deg, var(--secondary) 0%, var(--bg-white) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-subtitle {
    color: var(--primary-dark);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-social-link {
    width: 45px;
    height: 45px;
    background-color: var(--secondary);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 180, 216, 0.1);
}

.hero-social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 180, 216, 0.2);
}

.hero-social-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); /* Soft inner border */
    pointer-events: none;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    background: var(--secondary);
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Domicilio Banner */
.domicilio-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius-md);
    padding: 2rem;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 180, 216, 0.3);
    position: relative;
    overflow: hidden;
}

.domicilio-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.domicilio-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.domicilio-icon {
    font-size: 3rem;
    background: rgba(255,255,255,0.2);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.domicilio-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Health Section */
.health-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.health-desc {
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.specialist-card {
    display: flex;
    gap: 1.25rem;
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary);
}

.specialist-icon {
    font-size: 2rem;
    color: var(--primary-dark);
    background: var(--secondary);
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.specialist-info h4 {
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.specialist-name {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.health-image {
    display: flex;
    justify-content: center;
}

.health-abstract {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary);
    box-shadow: var(--shadow-soft);
}

/* Certifications Section */
.certifications-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.certifications-desc {
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.cert-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.cert-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--secondary);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.cert-card h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.certifications-image {
    display: flex;
    justify-content: center;
}

.cert-frame {
    position: relative;
    max-width: 450px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 8px solid white;
    transition: var(--transition);
}

.cert-img {
    width: 100%;
    height: auto;
    filter: grayscale(0.2);
    transition: var(--transition);
}

.cert-frame:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.cert-frame:hover .cert-img {
    filter: grayscale(0);
}

.cert-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.4);
    z-index: 2;
}


/* Location Grid */
.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-soft);
    background: var(--bg-white);
}

.info-card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.info-highlight {
    font-weight: 700;
    font-size: 1.1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.map-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
    background: #e5e3df; /* Map placeholder color */
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.map-marker {
    font-size: 2.5rem;
    color: #EA4335;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--bg-light);
    padding-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1); /* Make it white */
}

.footer-brand p {
    color: #A0AAB2;
}

.footer h4 {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-contact p, .footer-hours p {
    margin-bottom: 0.75rem;
    color: #A0AAB2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--bg-light);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #1A1A24;
    padding: 1.5rem 0;
    text-align: center;
    color: #A0AAB2;
    font-size: 0.9rem;
}

/* Floating WhatsApp CTA */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    width: 65px;
    height: 65px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    background-color: #1EBE5D;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Reviews Carousel */
.reviews-carousel {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 4rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.fb-post-wrapper {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.fb-post-wrapper.placeholder {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    border: 2px dashed var(--secondary);
    background: rgba(255, 255, 255, 0.5);
    height: 220px;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.fb-icon {
    font-size: 2.5rem;
    color: #1877F2; /* Facebook Blue */
    margin-bottom: 0.5rem;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--bg-white);
    box-shadow: var(--shadow-soft);
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.3);
}

.carousel-dots {
    display: flex;
    gap: 0.75rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.overflow-hidden {
    overflow: hidden;
}

@media (max-width: 600px) {
    .fb-post-wrapper iframe {
        transform: scale(0.8);
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Responsive adjustments */
@media (min-width: 768px) {
    .nav {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Make the 5th card span 2 columns to center it nicely if needed, or leave as is */
    
    .domicilio-content {
        flex-direction: row;
        text-align: left;
    }
    
    .health-container {
        grid-template-columns: 60% 40%;
    }
    
    .certifications-container {
        grid-template-columns: 55% 45%;
    }
    
    .location-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .floating-whatsapp {
        bottom: 2.5rem;
        right: 2.5rem;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 2fr 1.5fr 1fr 1.5fr;
    }
}
