/* ============================================
   DocPYME Landing Page - Custom Styles
   ============================================ */

/* ============================================
   CSS Variables (Design Tokens)
   ============================================ */
:root {
    /* Color Palette */
    --color-primary: #3943B7;
    --color-primary-dark: #2d3490;
    --color-secondary: #d7d9f1;
    --color-accent: #c8874b;
    --color-accent-hover: #b37842;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-primary-gradient: linear-gradient(135deg, #3943B7 0%, #2d3490 100%);

    /* Text Colors */
    --text-dark: #212529;
    --text-muted: #495057;
    --text-light: #6c757d;

    /* Spacing System (8px base) */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;

    /* Typography */
    --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Font Sizes */
    --font-size-xs: 0.875rem;    /* 14px */
    --font-size-sm: 1rem;         /* 16px */
    --font-size-md: 1.125rem;     /* 18px */
    --font-size-lg: 1.25rem;      /* 20px */
    --font-size-xl: 1.5rem;       /* 24px */
    --font-size-2xl: 2rem;        /* 32px */
    --font-size-3xl: 2.5rem;      /* 40px */
    --font-size-4xl: 3rem;        /* 48px */

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ============================================
   Global Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-md);
}

.lead {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-regular);
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: var(--font-size-3xl);
    }

    h2 {
        font-size: var(--font-size-2xl);
    }

    h3 {
        font-size: var(--font-size-xl);
    }
}

/* ============================================
   Accessibility
   ============================================ */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    z-index: 10000;
    border-radius: var(--radius-md);
}

.skip-to-main:focus {
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Focus states for accessibility (WCAG 2.1 AA) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ============================================
   Header / Navigation
   ============================================ */
.navbar {
    padding: var(--spacing-sm) 0;
    background-color: transparent;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.navbar-brand .logo {
    height: 40px;
    width: auto;
    transition: transform var(--transition-fast);
}

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

.navbar-nav {
    gap: var(--spacing-sm);
}

.nav-link {
    color: var(--text-dark);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

/* Navigation link on hero (white text before scroll) */
.navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar:not(.scrolled) .nav-link:hover {
    color: white;
}

/* Navigation link active state */
.nav-link.active {
    color: var(--color-primary);
}

.navbar:not(.scrolled) .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
    color: var(--color-primary);
    background-color: rgba(57, 67, 183, 0.1);
}

/* Mobile menu toggle */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: var(--spacing-xs);
}

.navbar.scrolled .navbar-toggler {
    border-color: var(--color-primary);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 3px solid var(--color-accent);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2857, 67, 183, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile menu dropdown */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: white;
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
        margin-top: var(--spacing-sm);
        box-shadow: var(--shadow-lg);
    }

    .navbar:not(.scrolled) .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
    }

    .navbar:not(.scrolled) .nav-link {
        color: var(--text-dark);
    }

    .navbar-nav {
        gap: 0;
    }

    .nav-item {
        margin-bottom: var(--spacing-xs);
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn-cta {
    background-color: var(--color-accent);
    color: white;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    border: none;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(200, 135, 75, 0.3);
}

.btn-cta:hover,
.btn-cta:focus {
    background-color: var(--color-accent-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(200, 135, 75, 0.4);
}

.btn-cta.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    font-weight: var(--font-weight-semibold);
    padding: 12px 28px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

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

/* ============================================
   Section Utilities
   ============================================ */
section {
    scroll-margin-top: 80px; /* Offset for fixed navbar */
}

.section-light {
    background-color: var(--bg-white);
    padding: var(--spacing-3xl) 0;
}

.section-gray {
    background-color: var(--bg-light);
    padding: var(--spacing-3xl) 0;
}

.section-primary {
    background-color: var(--color-secondary);
    padding: var(--spacing-3xl) 0;
}

.section-title {
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
}

/* Responsive section padding */
@media (max-width: 768px) {
    .section-light,
    .section-gray,
    .section-primary {
        padding: var(--spacing-2xl) 0;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: var(--bg-primary-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

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

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-regular);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-cta {
    margin-top: var(--spacing-xl);
}

.hero-image-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-md);
    padding: var(--spacing-lg);
    text-align: center;
}

/* Hero Badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.badge-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 1.1rem;
}

/* Hero Note (texto bajo el botón) */
.hero-note {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.hero-note small {
    display: inline-block;
}

/* Improved contrast for better accessibility (WCAG 2.1 AA) */
.hero-note .text-white-50 {
    color: rgba(255, 255, 255, 0.85) !important; /* Improved from 0.5 to 0.85 for better contrast */
}

/* Enhanced Placeholder Styles */
.hero-image-wrapper {
    position: relative;
    perspective: 1000px;
}

/* Hero Video Styles */
.hero-video {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: block;
    animation: float 6s ease-in-out infinite;
}

.hero-image-placeholder {
    position: relative;
    width: 100%;
    padding: 2rem;
}

.placeholder-screen {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.placeholder-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.placeholder-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.placeholder-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.placeholder-card {
    background: var(--color-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.placeholder-card:nth-child(1) {
    animation-delay: 0.2s;
}

.placeholder-card:nth-child(2) {
    animation-delay: 0.4s;
}

.placeholder-card:nth-child(3) {
    animation-delay: 0.6s;
}

.placeholder-card-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.placeholder-card-text {
    flex: 1;
    height: 20px;
    background: rgba(57, 67, 183, 0.2);
    border-radius: 4px;
}

.placeholder-text {
    text-align: center;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Animación de flotación */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Entrance Animations */
.hero-title {
    animation: fadeInDown 0.8s ease;
}

.hero-subtitle {
    animation: fadeInDown 0.8s ease 0.2s backwards;
}

.hero-badges {
    animation: fadeInDown 0.8s ease 0.4s backwards;
}

.hero-cta {
    animation: fadeInDown 0.8s ease 0.6s backwards;
}

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

/* Responsive hero */
@media (max-width: 992px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-md);
    }

    .hero-image-wrapper {
        margin-top: 3rem;
    }

    .placeholder-screen {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }

    .hero-badges {
        flex-direction: column;
        align-items: flex-start;
    }

    .badge-item {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Pricing Cards
   ============================================ */
.pricing-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Featured pricing card */
.pricing-card-featured {
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(57, 67, 183, 0.15);
}

.pricing-card-featured:hover {
    box-shadow: 0 12px 40px rgba(57, 67, 183, 0.25);
}

/* Pricing badge */
.pricing-badge {
    position: absolute;
    top: -12px;
    right: var(--spacing-lg);
    background: var(--color-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-sm);
}

/* Pricing header */
.pricing-header {
    text-align: center;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--bg-light);
    margin-bottom: var(--spacing-lg);
}

.pricing-plan-name {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: var(--spacing-xs);
}

.pricing-currency {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    margin-right: 0.25rem;
}

.pricing-amount {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1;
}

.pricing-period {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.pricing-billing {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin: 0;
}

/* Custom pricing (Plan Personalizado) */
.pricing-price-custom {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.pricing-custom-icon {
    font-size: 3rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.pricing-custom-text {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.pricing-custom-description {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-sm);
}

/* Pricing features */
.pricing-features {
    flex: 1;
    margin-bottom: var(--spacing-lg);
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
}

.pricing-feature-icon {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.pricing-feature span {
    color: var(--text-dark);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

/* Pricing footer */
.pricing-footer {
    margin-top: auto;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-primary-custom {
    background-color: var(--color-primary);
    color: white;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    border: none;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(57, 67, 183, 0.2);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
    background-color: var(--color-primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(57, 67, 183, 0.3);
}

/* Responsive pricing cards */
@media (max-width: 768px) {
    .pricing-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }

    .pricing-amount {
        font-size: 2.5rem;
    }

    .pricing-badge {
        right: var(--spacing-md);
        font-size: 0.8rem;
    }
}

/* ============================================
   Content Sections (Qué es, Nube, IA, etc.)
   ============================================ */

/* Qué es Section */
.que-es-section {
    padding: 6rem 0;
}

/* Nube Section */
.nube-section {
    padding: 6rem 0;
}

/* IA Section (AI Processing) */
.ia-section {
    padding: 6rem 0;
}

/* Europeos Section */
.europeos-section {
    padding: 6rem 0;
}

.europeos-placeholder {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.europeos-placeholder:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.2);
}

.europeos-placeholder .placeholder-icon {
    color: white;
    opacity: 0.6;
}

.europeos-placeholder .placeholder-caption {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Contact Form
   ============================================ */
.contacto-section {
    padding: 6rem 0;
}

.contact-form-wrapper {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
}

.contact-form .form-label {
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-sm);
}

.contact-form .form-control {
    padding: 0.75rem 1rem;
    border: 2px solid var(--bg-light);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.contact-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(57, 67, 183, 0.1);
    outline: none;
}

.contact-form .form-control::placeholder {
    color: var(--text-light);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    border: 2px solid var(--bg-light);
    cursor: pointer;
}

.contact-form .form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.contact-form .form-check-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(57, 67, 183, 0.1);
}

.contact-form .form-check-label {
    font-size: var(--font-size-sm);
    color: var(--text-dark);
    cursor: pointer;
    margin-left: 0.5rem;
}

.contact-form .privacy-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: var(--font-weight-semibold);
}

.contact-form .privacy-link:hover {
    color: var(--color-primary-dark);
}

.contact-form .invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.contact-form .form-text {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Form validation states */
.contact-form .was-validated .form-control:invalid,
.contact-form .form-control.is-invalid {
    border-color: #dc3545;
}

.contact-form .was-validated .form-control:valid,
.contact-form .form-control.is-valid {
    border-color: #28a745;
}

.contact-form .was-validated .form-check-input:invalid,
.contact-form .form-check-input.is-invalid {
    border-color: #dc3545;
}

/* Responsive contact form */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: var(--spacing-xl);
    }
}

@media (max-width: 576px) {
    .contact-form-wrapper {
        padding: var(--spacing-lg);
    }

    .contacto-section {
        padding: 4rem 0;
    }
}

.que-es-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-muted);
    line-height: 1.4;
}

.que-es-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Content Image Placeholder - Similar al hero */
.content-image-placeholder {
    background-color: var(--bg-light);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
    border: 2px dashed rgba(57, 67, 183, 0.2);
    transition: all var(--transition-base);
    aspect-ratio: 16 / 9;
    width: 100%;
}

.content-image-placeholder:hover {
    border-color: rgba(57, 67, 183, 0.4);
    background-color: rgba(248, 249, 250, 0.8);
}

.placeholder-icon {
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.4;
    margin-bottom: var(--spacing-md);
}

.placeholder-caption {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    text-align: center;
    margin: 0;
    font-weight: var(--font-weight-semibold);
}

/* Content Image (Real images) */
.content-image-wrapper {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.content-image-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* Responsive Content Sections */
@media (max-width: 992px) {
    .que-es-section,
    .nube-section,
    .ia-section,
    .europeos-section {
        padding: 4rem 0;
    }

    .que-es-subtitle {
        font-size: var(--font-size-lg);
        text-align: center;
    }

    .que-es-text {
        font-size: 1rem;
        text-align: center;
    }

    .content-image-placeholder {
        padding: var(--spacing-2xl) var(--spacing-lg);
        margin-top: var(--spacing-lg);
    }
}

@media (max-width: 576px) {
    .que-es-section,
    .nube-section,
    .ia-section,
    .europeos-section {
        padding: 3rem 0;
    }

    .que-es-subtitle {
        font-size: var(--font-size-md);
    }

    .content-image-placeholder {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .placeholder-icon {
        font-size: 3rem;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer-section {
    background-color: var(--color-primary-dark);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-logo {
    height: 40px;
    width: auto;
    /* No filter needed as we're using logo-white.webp directly */
}

/* Improved contrast for footer text (WCAG 2.1 AA) */
.footer-section .text-white-50 {
    color: rgba(255, 255, 255, 0.8) !important; /* Improved from 0.5 to 0.8 for better contrast */
}

.footer-link {
    color: rgba(255, 255, 255, 0.85); /* Improved from 0.7 to 0.85 for better contrast */
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-block;
    margin-bottom: var(--spacing-xs);
}

.footer-link:hover,
.footer-link:focus {
    color: white;
    text-decoration: underline;
}

.footer h5 {
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-md);
}

/* ============================================
   Image Placeholders
   ============================================ */
.img-placeholder {
    background: #ddd;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: var(--font-size-sm);
    padding: var(--spacing-lg);
    text-align: center;
    min-height: 200px;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   Legal Page Styles
   ============================================ */
.legal-page {
    min-height: 100vh;
    padding-top: 100px; /* Offset for fixed navbar */
    background-color: var(--bg-light);
}

.legal-header {
    margin-top: var(--spacing-2xl);
}

.legal-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.legal-section {
    background-color: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
}

.legal-section-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    align-items: center;
}

.legal-content h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.legal-content p {
    font-size: var(--font-size-sm);
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.legal-content ul {
    font-size: var(--font-size-sm);
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.legal-content li {
    margin-bottom: var(--spacing-xs);
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: var(--font-weight-semibold);
}

.legal-content a:hover {
    color: var(--color-primary-dark);
}

.info-box {
    background-color: var(--bg-light);
    border-left: 4px solid var(--color-primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

.info-box p {
    margin-bottom: var(--spacing-xs);
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Button styles for legal page */
.btn-outline-primary {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-decoration: none;
}

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

/* Responsive legal page */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 80px;
    }

    .legal-title {
        font-size: var(--font-size-2xl);
    }

    .legal-section {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }

    .legal-section-title {
        font-size: var(--font-size-xl);
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    .legal-content h3 {
        font-size: var(--font-size-lg);
    }

    .info-box {
        padding: var(--spacing-md);
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-primary-custom {
    color: var(--color-primary);
}

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

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

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

/* Spacing utilities extensions */
.py-section {
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
}

@media (max-width: 768px) {
    .py-section {
        padding-top: var(--spacing-2xl);
        padding-bottom: var(--spacing-2xl);
    }
}
