/* ==========================================
   VARIABLES Y RESET
   ========================================== */
:root {
    --primary-color: #004d40;
    --primary-light: #00796b;
    --primary-lighter: #00897b;
    --accent-color: #4db6ac;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6a6a6a;
    --bg-light: #f8faf9;
    --bg-white: #ffffff;
    --highlight-bg: #e8f5e9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   HERO SECTION - PANTALLA COMPLETA
   ========================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 30px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-badge {
    display: inline-block;
    margin-top: 1.5rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-badge span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.hero-badge span:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator svg {
    width: 100%;
    height: 100%;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   CONTAINER Y SECCIONES
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-title.white {
    color: white;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    background: white;
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* HIGHLIGHT BOX */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
    padding: 40px;
    border-radius: 16px;
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.highlight-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.highlight-box p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.95;
    position: relative;
}

.highlight-box strong {
    font-weight: 600;
    color: white;
}

/* ==========================================
   EXPERTISE CARDS
   ========================================== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.expertise-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 121, 107, 0.1);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-light);
    transition: height 0.4s ease;
}

.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.expertise-card:hover::before {
    height: 100%;
}

.expertise-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 77, 64, 0.3);
}

.expertise-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.expertise-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
}

/* FADE IN ANIMATION */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 80px 60px;
    border-radius: 24px;
    text-align: center;
    color: white;
    margin: 80px 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section .section-title {
    color: white;
    position: relative;
}

.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-family: var(--font-body);
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: var(--primary-color);
    color: white;
    padding: 50px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
    opacity: 0.9;
    font-size: 1rem;
}

.footer-info-line {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .expertise-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    section {
        padding: 70px 0;
    }

    .cta-section {
        padding: 60px 40px;
        margin: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 550px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .container {
        padding: 0 20px;
    }

    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .expertise-card {
        padding: 35px 25px;
    }

    .cta-section {
        padding: 50px 30px;
        border-radius: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-badge span {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    section {
        padding: 50px 0;
    }

    .about-text p {
        font-size: 1rem;
    }

    .highlight-box {
        padding: 30px 25px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .expertise-icon {
        width: 60px;
        height: 60px;
        font-size: 1.1rem;
    }

    .cta-section {
        padding: 40px 25px;
    }

    footer {
        padding: 40px 0;
    }
}

/* ==========================================
   ACCESSIBILITY & PRINT
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {

    .scroll-indicator,
    .cta-section,
    footer {
        display: none;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 40px 20px;
    }

    section {
        padding: 30px 0;
        page-break-inside: avoid;
    }
}