﻿/* ========================================
   DEA Consulting - DEFAULT PAGE CSS
   Página de Inicio - Paleta alineada al logo
   Archivo: Stilo_Default.css
   ======================================== */

/* ============ VARIABLES LOCALES ============ */
:root {
    --hero-gradient: linear-gradient(135deg, rgba(8,28,51,0.96) 0%, rgba(14,42,71,0.88) 48%, rgba(47,164,217,0.42) 100%);
    --vision-gradient: linear-gradient(180deg, #0A1D34 0%, #061321 100%);
    --card-hover-shadow: 0 24px 60px rgba(8, 28, 51, 0.14);
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============ BASE & TIPOGRAFÍA ============ */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-padding-top: 80px;
}

/* ============ UTILIDADES DE SECCIÓN ============ */
.shell {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.section-header {
    margin-bottom: 40px;
    max-width: 700px;
}

    .section-header h2 {
        font-size: 28px;
        font-weight: 800;
        color: var(--navy);
        margin: 0 0 12px;
        letter-spacing: -0.5px;
    }

.section-header-light h2 {
    color: #f1f5f9;
}

.section-subtitle {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

    .section-subtitle.text-light {
        color: var(--footer-text-muted);
    }

.section-header-centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    margin: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--hero-gradient), url('/Images/Overa.jpg') center/cover no-repeat;
    z-index: 0;
}

.hero-section {
    width: min(1140px, calc(100% - 36px));
    margin: 20px auto 0;
    border-radius: 24px;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(8,28,51,.90) 0%, rgba(14,42,71,.72) 42%, rgba(47,164,217,.18) 100%), url("/Images/Overa.jpg") center/cover no-repeat;
    box-shadow: 0 18px 40px rgba(0,0,0,.15);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at bottom, rgba(91,192,235,0.14) 0%, transparent 70%);
    pointer-events: none;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 60px 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

.hero-content {
    max-width: 680px;
    color: #fff;
}

.hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    background: #fff;
    padding: 12px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: -0.8px;
}

.hero .highlight {
    color: var(--primary-light);
    position: relative;
    display: inline;
}

    .hero .highlight::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 0;
        width: 100%;
        height: 8px;
        background: rgba(47, 164, 217, 0.22);
        border-radius: 4px;
        z-index: -1;
    }

.hero-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    margin: 0 0 32px;
    opacity: 0.96;
    max-width: 58ch;
}

    .hero-subtitle strong {
        color: var(--primary-light);
        font-weight: 700;
    }

/* Botones del hero */
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-lg {
    padding: 16px 28px;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--primary) 100%);
    color: #fff;
    border-color: rgba(47, 164, 217, 0.16);
    box-shadow: var(--shadow-primary);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 36px rgba(47, 164, 217, 0.28);
        background: linear-gradient(135deg, var(--navy) 0%, var(--primary-light) 100%);
    }

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.36);
}

    .btn-ghost:hover {
        background: rgba(255, 255, 255, 0.20);
        border-color: rgba(255, 255, 255, 0.7);
    }

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: rgba(8, 28, 51, 0.18);
}

    .btn-outline:hover {
        background: var(--navy);
        color: #fff;
    }

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-arrow {
    transition: transform 0.2s var(--ease-out);
    font-weight: 400;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Trust badges */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-item {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.92;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============ ESPECIALIDADES ============ */
.specialties {
    padding: 72px 0;
    background: var(--bg);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.specialty-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

    .specialty-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--card-hover-shadow);
        border-color: rgba(47, 164, 217, 0.22);
    }

    .specialty-card.featured {
        border-color: rgba(47, 164, 217, 0.28);
        background: linear-gradient(135deg, rgba(47,164,217,0.05) 0%, #fff 100%);
    }

        .specialty-card.featured::before {
            content: '⭐';
            position: absolute;
            top: 16px;
            right: 16px;
            font-size: 18px;
        }

.specialty-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(47, 164, 217, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.specialty-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 14px;
    line-height: 1.3;
}

.specialty-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex-grow: 1;
}

    .specialty-list li {
        font-size: 14px;
        color: var(--muted);
        line-height: 1.6;
        padding: 4px 0 4px 22px;
        position: relative;
    }

        .specialty-list li::before {
            content: '•';
            position: absolute;
            left: 8px;
            color: var(--primary);
            font-weight: bold;
            font-size: 18px;
            line-height: 1;
            top: 4px;
        }

.card-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    margin-top: auto;
}

    .card-link:hover {
        gap: 8px;
        color: var(--navy-light);
    }

    .card-link span {
        transition: transform 0.2s var(--ease-out);
    }

    .card-link:hover span {
        transform: translateX(4px);
    }

/* ============ VISIÓN SECTION ============ */
.vision {
    padding: 72px 0;
    background: var(--vision-gradient);
    position: relative;
    overflow: hidden;
}

    .vision::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 60%;
        height: 200%;
        background: radial-gradient(ellipse, rgba(91,192,235,0.12) 0%, transparent 70%);
        pointer-events: none;
    }

.vision-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.vision-content {
    margin-top: 32px;
}

.vision-text {
    color: var(--footer-text);
    font-size: 16px;
    line-height: 1.8;
}

    .vision-text p {
        margin: 0 0 20px;
    }

        .vision-text p:last-child {
            margin-bottom: 0;
        }

.vision-principle {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-light);
    font-style: italic;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    margin: 28px 0 !important;
}

    .vision-principle em {
        color: #fff;
        font-weight: 700;
        font-style: normal;
    }

/* Resultados destacados */
.vision-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
}

.result-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-light);
    line-height: 1;
}

.result-label {
    font-size: 13px;
    color: var(--footer-text-muted);
    text-align: center;
    font-weight: 500;
}

/* ============ CEO SECTION ============ */
.ceo {
    padding: 72px 0;
    background: var(--bg);
}

.ceo-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
}

/* Video */
.ceo-video {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
    aspect-ratio: 16/10;
}

.video-wrapper {
    position: absolute;
    inset: 0;
}

    .video-wrapper iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(47, 164, 217, 0.95);
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

    .video-play-overlay:hover {
        transform: translate(-50%, -50%) scale(1.08);
        background: var(--primary);
    }

.play-icon {
    color: #fff;
    font-size: 24px;
    margin-left: 4px;
}

/* Info CEO */
.ceo-info h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 24px;
}

.ceo-profile {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.ceo-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.ceo-details {
    flex: 1;
}

.ceo-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 4px;
}

.ceo-role {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
    margin: 0 0 12px;
}

.ceo-credentials {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .ceo-credentials li {
        font-size: 14px;
        color: var(--muted);
        padding: 4px 0 4px 20px;
        position: relative;
        line-height: 1.5;
    }

        .ceo-credentials li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--success);
            font-weight: bold;
        }

/* Redes sociales CEO */
.ceo-social {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

    .social-link:hover {
        border-color: rgba(47, 164, 217, 0.22);
        background: rgba(47, 164, 217, 0.08);
        transform: translateY(-2px);
    }

    .social-link img {
        width: 20px;
        height: 20px;
        opacity: 0.85;
        transition: opacity 0.2s;
    }

    .social-link:hover img {
        opacity: 1;
    }

/* ============ CONTACTO PREVIEW ============ */
.contact-preview {
    padding: 72px 0;
    background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
}

.contact-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 40px;
}

/* Info card */
.contact-info-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

    .contact-info-card h3 {
        font-size: 18px;
        font-weight: 800;
        color: var(--navy);
        margin: 0 0 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--line);
    }

.office-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
}

    .office-item:last-child {
        border-bottom: none;
    }

.office-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.office-item strong {
    display: block;
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 4px;
}

.office-item p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.contact-direct {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(47, 164, 217, 0.08);
    border: 1px solid rgba(47, 164, 217, 0.14);
    transition: var(--transition);
}

    .contact-link:hover {
        background: rgba(47, 164, 217, 0.12);
        border-color: rgba(47, 164, 217, 0.22);
        transform: translateX(4px);
    }

/* Form card */
.contact-form-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

    .contact-form-card h3 {
        font-size: 18px;
        font-weight: 800;
        color: var(--navy);
        margin: 0 0 20px;
    }

/* Mensajes de formulario */
.form-message {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-out;
}

    .form-message.success {
        background: rgba(22, 163, 74, 0.12);
        border: 1px solid rgba(22, 163, 74, 0.35);
        color: #15803d;
    }

    .form-message.error {
        background: rgba(220, 38, 38, 0.12);
        border: 1px solid rgba(220, 38, 38, 0.35);
        color: #b91c1c;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Formulario */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 500px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    background: #fff;
    border: 1px solid rgba(8, 28, 51, 0.14);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

    .form-control::placeholder {
        color: var(--muted);
        opacity: 1;
    }

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(47, 164, 217, 0.14);
    }

    .form-control:hover:not(:focus) {
        border-color: rgba(8, 28, 51, 0.22);
    }

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.form-note {
    font-size: 12px;
    color: var(--muted);
    margin: 16px 0 0;
    text-align: center;
    opacity: 0.8;
}

/* CTA final */
.contact-cta {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--primary) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        background: linear-gradient(135deg, var(--navy) 0%, var(--primary-light) 100%);
        transform: translateY(-3px);
    }

/* ============ RESPONSIVE - MÓVIL ============ */
@media (max-width: 900px) {
    .shell {
        width: min(100%, calc(100% - 8px));
    }

    .hero {
        min-height: 480px;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .specialties-grid {
        grid-template-columns: 1fr;
    }

    .vision-results {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ceo-grid {
        grid-template-columns: 1fr;
    }

    .ceo-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ceo-credentials {
        text-align: left;
    }

    .contact-preview-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 24px;
    }

    .back-to-top {
        bottom: 70px;
        right: 12px;
    }
}

@media (max-width: 500px) {
    html {
        font-size: 10px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .specialty-card {
        padding: 24px;
    }

    .ceo-photo {
        width: 100px;
        height: 100px;
    }

    .form-control {
        font-size: 14px;
        padding: 12px 14px;
    }
}

/* ============ ACCESIBILIDAD ============ */
.btn:focus-visible,
.card-link:focus-visible,
.contact-link:focus-visible,
.form-control:focus-visible,
.back-to-top:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============ ANIMACIONES DE ENTRADA ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.specialty-card {
    animation: fadeInUp 0.4s var(--ease-out) backwards;
}

    .specialty-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .specialty-card:nth-child(2) {
        animation-delay: 0.15s;
    }

    .specialty-card:nth-child(3) {
        animation-delay: 0.2s;
    }

    .specialty-card:nth-child(4) {
        animation-delay: 0.25s;
    }

    .specialty-card:nth-child(5) {
        animation-delay: 0.3s;
    }

/* ============ PRINT ============ */
@media print {
    .hero, .ceo-video, .contact-form-card, .back-to-top {
        display: none !important;
    }

    .specialty-card, .contact-info-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
