/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
    /* Brand Colors based on high-end medical/dental aesthetics */
    --primary: #064E3B; /* Deep elegant green */
    --primary-light: #0D7A5E;
    --accent: #C7A76D; /* Gold accent for premium feel */
    --accent-hover: #D8B77D;
    
    --bg-main: #FFFFFF;
    --bg-light: #F8FAF9;
    --bg-dark: #111827;
    
    --text-main: #374151;
    --text-heading: #1F2937;
    --text-muted: #6B7280;
    
    --success: #10B981;
    --warning: #F59E0B;
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Layout & Spacing */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

/* ==========================================================================
   Layout Helpers
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: white; }
.bg-dark h2, .bg-dark h3 { color: white; }

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-white { color: white; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }

/* ==========================================================================
   Components
   ========================================================================== */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--text-heading);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-link:hover {
    gap: 0.5rem;
    color: var(--primary-light);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: rgba(6, 78, 59, 0.1);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.urgency-badge {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Icons/Stars */
.stars {
    color: var(--warning);
    font-size: 0.875rem;
    letter-spacing: 2px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */


.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-text span {
    font-weight: 300;
    color: var(--text-main);
}

.nav ul {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-heading);
    font-weight: 500;
    font-size: 1rem;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 3.4rem 0; /* Reduced 15% from 4rem */
    background: linear-gradient(135deg, #f0f7f4 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.4rem; /* Reduced 15% from 4rem */
    align-items: center;
}

.hero-text h1 {
    font-size: 2.975rem; /* Reduced 15% from 3.5rem */
    margin-bottom: 1.275rem; /* Reduced 15% from 1.5rem */
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.0625rem; /* Reduced 15% from 1.25rem */
    color: var(--text-muted);
    margin-bottom: 1.7rem; /* Reduced 15% from 2rem */
    max-width: 90%;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.275rem; /* Reduced 15% from 1.5rem */
}

.social-proof-small {
    display: flex;
    flex-direction: column;
    font-size: 0.74rem; /* Reduced 15% from 0.875rem */
    color: var(--text-muted);
}

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

.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4/5;
    width: 100%;
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 0.64rem 1.06rem; /* Reduced 15% from 0.75rem 1.25rem */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.425rem; /* Reduced 15% from 0.5rem */
    z-index: 10;
}

.badge-1 {
    top: 10%;
    left: -5%;
}

.badge-2 {
    bottom: 15%;
    right: -10%;
}

/* ==========================================================================
   Benefits Grid
   ========================================================================== */
.benefits {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-card:hover {
    box-shadow: var(--shadow-md);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(6, 78, 59, 0.05);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem auto;
    transition: var(--transition);
}

.benefit-card:hover .icon-box {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.section-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(6, 78, 59, 0.2);
}

.service-card.featured {
    padding: 0;
    border: 2px solid var(--primary-light);
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.service-card.featured .service-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-image {
    position: relative;
    height: 250px;
    width: 100%;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--text-heading);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Agitation Section
   ========================================================================== */
.piaconsultorio-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 0 0 var(--spacing-md) 0;
    max-width: 450px;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .piaconsultorio-img {
        margin: 0 auto var(--spacing-md) auto;
    }
}

.agitation-flex {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.125rem;
}

.check-list i {
    margin-top: 0.25rem;
}

.box-highlight {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    backdrop-filter: blur(10px);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.test-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.testimonial-card h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.team-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
    display: block;
}

.team-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.team-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-light);
    padding-top: var(--spacing-xl);
}

.footer-cta {
    text-align: center;
    max-width: 600px;
    margin-bottom: 4rem;
}

.footer-bottom {
    background-color: var(--bg-dark);
    padding: 4rem 0 2rem 0;
    color: rgba(255,255,255,0.7);
}

.footer-flex {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.footer-info p {
    margin-bottom: 1rem;
}

.footer-info i {
    color: var(--accent);
    width: 20px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in { animation: fadeInUp 0.8s ease-out forwards; }
.fade-in-delay { animation: fadeInUp 0.8s ease-out 0.2s forwards; opacity: 0; }
.fade-in-delay-2 { animation: fadeInUp 0.8s ease-out 0.4s forwards; opacity: 0; }

.pulse-animation {
    animation: pulse 4s infinite ease-in-out;
}

.hover-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-up:hover {
    transform: translateY(-10px);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container, .agitation-flex, .footer-flex, .team-flex {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-text, .team-content {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }
    
    .hero-text p {
        margin: 0 auto 2rem auto;
    }
    
    .badge-1, .badge-2 {
        display: none;
    }
    
    .benefits-grid, .services-grid, .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .service-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    

    
    h1 {
        font-size: 2.0rem !important;
    }
    
    h2, .section-header h2 {
        font-size: 2.0rem !important;
    }
    
    h3, .service-card h3 {
        font-size: 1.2rem !important;
    }
    
    h4, .testimonial-card h4 {
        font-size: 0.9rem !important;
    }
    
    .benefits-grid, .services-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card.featured {
        grid-column: span 1;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}
