/* css/style.css */

:root {
    --color-primary: #12466d;
    --color-primary-dark: #0d3552;
    --color-accent-yellow: #f5b345;
    --color-accent-orange: #e25c37;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-dark: #212529;
    --color-gray: #6c757d;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --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.16);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.2);
    --border-radius: 1rem;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    color: var(--color-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary-dark);
}

/* Navbar */
#mainNav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(18, 70, 109, 0.08);
    transition: all 0.3s ease;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    z-index: 1030;
}

.navbar-logo {
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.brand-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--color-accent-orange);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-dark);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--color-accent-yellow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Hero Section - CORREGIDA */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0a3550 50%, #081f30 100%);
    min-height: auto;
    padding-top: 100px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(245, 179, 69, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    filter: brightness(0) invert(1);
    animation: floatIn 1s ease-out;
    flex-shrink: 0;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    max-width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: translateY(-8px);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

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

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

.btn-accent {
    background-color: var(--color-accent-orange);
    border-color: var(--color-accent-orange);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #c94d2f;
    border-color: #c94d2f;
    color: white;
    transform: translateY(-2px);
}

.btn-accent:active {
    transform: translateY(0);
}

.shadow-accent {
    box-shadow: 0 8px 24px rgba(226, 92, 55, 0.35);
}

/* Section Styles */
.section-padding {
    padding: 5rem 0;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent-orange);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-yellow), var(--color-accent-orange));
    border-radius: 2px;
}

/* Image Styles */
.section-image {
    transition: all 0.4s ease;
    object-fit: cover;
    width: 100%;
}

.section-image:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2) !important;
}

.image-frame {
    position: relative;
}

.image-accent-dot {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: -1;
    transition: transform 0.4s ease;
}

.image-accent-dot.bg-accent-orange {
    background-color: var(--color-accent-orange);
    bottom: -15px;
    right: -15px;
}

.image-accent-dot.bg-accent-blue {
    background-color: var(--color-primary);
    top: -15px;
    left: -15px;
    opacity: 0.2;
}

.image-accent-dot.bg-accent-yellow {
    background-color: var(--color-accent-yellow);
    bottom: -15px;
    left: -15px;
}

.image-frame:hover .image-accent-dot {
    transform: scale(1.2);
}

/* Card Styles - CENTRADAS */
.section-card {
    transition: all 0.4s ease;
    background: white;
    overflow: hidden;
}

.section-card:hover {
    transform: translateY(-8px);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.card-image-wrapper img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

.section-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
}

.card-body {
    border-top: 3px solid var(--color-accent-yellow);
}

/* Shadow effects */
.shadow-hover {
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

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

/* Compromiso Section */
#compromiso {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0a3550 100%);
    position: relative;
}

#compromiso .bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(245, 179, 69, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.text-accent-yellow {
    color: var(--color-accent-yellow);
}

/* CTA Box - CORREGIDA con fondo visible y texto blanco */
.cta-box {
    background: linear-gradient(135deg, #0a1a24 0%, var(--color-primary) 50%, #0d3552 100%);
    border: 2px solid rgba(245, 179, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(245, 179, 69, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h3,
.cta-box p {
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.cta-box .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.cta-box .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
}

/* Info Cards */
.info-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(18, 70, 109, 0.08);
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent-yellow);
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(18, 70, 109, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Footer */
.footer-section {
    background-color: #0a1a24;
}

.footer-logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-link {
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.footer-link:hover {
    color: var(--color-accent-yellow);
    padding-left: 4px;
}

/* Utility Classes */
.letter-spacing-3 {
    letter-spacing: 3px;
}

.min-vh-75 {
    min-height: auto;
}

/* Responsive adjustments */
@media (max-width: 1399.98px) {
    /* Asegurar que las cards en pantallas grandes se vean bien */
    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
}

@media (max-width: 991.98px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-padding {
        padding: 3.5rem 0;
    }
    
    .hero-section {
        padding-top: 90px;
        min-height: auto;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-image {
        max-height: 350px;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-padding {
        padding: 2.5rem 0;
    }
    
    .hero-section {
        margin-top: 0;
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-logo {
        width: 56px;
        height: 56px;
    }
    
    .hero-content .d-flex.align-items-center {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image-wrapper {
        display: none; /* Ocultar imagen en móviles para evitar solapamiento */
    }
    
    .card-image-wrapper img {
        height: 160px;
    }
    
    .cta-box {
        padding: 2rem !important;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section .display-4 {
        font-size: 1.6rem;
    }
    
    .section-label {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Font weight utilities */
.fw-light {
    font-weight: 300;
}
.fw-regular {
    font-weight: 400;
}
.fw-medium {
    font-weight: 500;
}
.fw-semibold {
    font-weight: 600;
}
.fw-bold {
    font-weight: 700;
}

/* Z-index layers */
.z-1 {
    z-index: 1;
}
.z-2 {
    z-index: 2;
}