/* ============================================================================
   PIEDRA ANGULAR - SISTEMA DE DISEÑO ESTANDARIZADO
   ============================================================================ */

/* ============================================================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
   ============================================================================ */

:root {
    /* COLORES - Paleta oscura consistente */
    --primary: #2C3E50;           /* Azul oscuro principal - Títulos, CTAs principales */
    --primary-light: #34495e;     /* Variación más clara */
    --primary-lighter: #4a5f7f;   /* Variación aún más clara */
    --primary-lightest: #5d6d7e;  /* Variación muy clara para hover/accents */
    --secondary: #1a2332;         /* Azul muy oscuro - Backgrounds, footer */
    --accent: #506680;            /* Azul medio - Acentos, hover states */
    --text: #555555;              /* Gris oscuro - Texto body */
    --text-light: #999999;        /* Gris claro - Texto secundario */
    --border: #e0e0e0;            /* Bordes */
    --bg-light: #f8f9fa;          /* Background claro */
    --bg-dark: #212b3a;           /* Background oscuro */
    --success: #28a745;           /* Verde - Estados positivos */
    --danger: #dc3545;            /* Rojo - Estados negativos */
    --warning: #4a5f7f;           /* Azul medio - Advertencias */

    /* TIPOGRAFÍA */
    --font-family: 'Poppins', sans-serif;
    --h1: 2.5rem;
    --h2: 2rem;
    --h3: 1.3rem;
    --h4: 1.1rem;
    --body: 1rem;
    --small: 0.875rem;

    /* ESPACIADO */
    --section-padding: 4rem;
    --card-padding: 2rem;
    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 1.5rem;
    --gap-xl: 2rem;

    /* BORDES Y SOMBRAS */
    --radius: 0.375rem;
    --radius-lg: 0.5rem;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.15);

    /* TRANSICIONES */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.6s ease;
}

/* ============================================================================
   2. RESET Y BASE
   ============================================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--body);
    color: var(--text);
    line-height: 1.6;
    background: white;
}

/* ============================================================================
   3. TIPOGRAFÍA
   ============================================================================ */

h1, .h1 {
    font-size: var(--h1);
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: var(--gap-lg);
}

h2, .h2 {
    font-size: var(--h2);
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: var(--gap-lg);
}

h3, .h3 {
    font-size: var(--h3);
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: var(--gap-md);
}

h4, .h4 {
    font-size: var(--h4);
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: var(--gap-md);
}

p {
    margin-bottom: var(--gap-md);
    color: var(--text);
}

small {
    font-size: var(--small);
    color: var(--text-light);
}

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

a:hover {
    color: var(--secondary);
}

/* ============================================================================
   4. NAVBAR
   ============================================================================ */

.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0 !important;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    color: var(--secondary) !important;
}

.navbar-brand img,
.navbar-logo {
    height: 65px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.2);
}

.nav-link {
    font-weight: 500;
    color: var(--secondary) !important;
    margin: 0 var(--gap-sm);
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.btn-primary-custom {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    border: 2px solid var(--primary);
}

.btn-primary-custom:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4);
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand img,
    .navbar-logo {
        height: 50px;
    }

    .nav-link {
        margin: 0.5rem 0;
    }
}

/* ============================================================================
   5. HERO SECTION
   ============================================================================ */

.hero-section-new {
    position: relative;
    min-height: 70vh;
    background-image: url('../img/portada_hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.85) 0%, rgba(44, 62, 80, 0.75) 50%, rgba(26, 47, 63, 0.85) 100%);
    z-index: 1;
}

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

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.7rem 1.3rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

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

.hero-badge i {
    margin-right: 0.4rem;
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    border: 2px solid;
}

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

.btn-hero-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-section-new {
        min-height: 80vh;
        padding: 6rem 0 3rem 0;
        background-attachment: scroll;
    }

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

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

    .hero-cta-buttons {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
}

.page-header {
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 3rem 0 1rem 0;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.display-1 {
    font-size: var(--h1);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--gap-lg);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: var(--gap-xl);
}

/* Hero Illustration */
.hero-illustration {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-width: 500px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* Process Section */
#proceso {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 50%, #1a2f3f 100%) !important;
    padding: 4rem 0 !important;
}

#proceso .display-3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#proceso .lead {
    font-size: 1.15rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

#proceso .col-lg-3 {
    margin-bottom: 2rem;
}

/* Process Illustrations */
.process-illustration {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-width: 380px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.25));
    margin-bottom: 1.5rem;
}

.text-center:hover .process-illustration {
    transform: translateY(-15px);
    filter: drop-shadow(0 15px 40px rgba(255, 255, 255, 0.35));
}

#proceso h5 {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
    font-weight: 700;
}

/* Badges animados */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-animate {
    animation: slideInUp 0.6s ease forwards;
}

/* Badge Styling - Consistent Colors */
.badge-default {
    background-color: rgba(52, 73, 94, 0.1) !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary-light);
    font-weight: 600;
}

.badge-pill {
    padding: 0.5rem 1rem;
}

.badge-lg {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
}

/* Button Styling - Consistent Colors */
.btn {
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

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

.btn-warning:hover {
    background-color: var(--primary-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.35);
}

@media (max-width: 768px) {
    .display-1 {
        font-size: 2.5rem;
    }

    .page-header {
        min-height: 80vh;
        padding: 2rem 0 0;
    }

    .lead {
        font-size: 1.1rem;
    }
}

/* ============================================================================
   6. SECCIÓN DE SERVICIOS
   ============================================================================ */

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: var(--h2);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: var(--gap-lg);
}

.section-title p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards de servicios */
.card {
    border: 1px solid rgba(44, 62, 80, 0.15);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background: linear-gradient(135deg, #fff 0%, var(--bg-light) 100%);
    overflow: visible;
    position: relative;
}

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

.card:hover .icon-shape {
    transform: scale(1.1);
}

.card-body {
    padding: var(--card-padding);
    position: relative;
    z-index: 2;
}

.card-title {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--h4);
    margin-bottom: var(--gap-md);
}

.card-description {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--gap-lg);
}

/* Service Icons - Canva Assets */
.service-icon {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 160px;
    object-fit: contain;
    transition: var(--transition);
    padding: 15px;
    background: #f0f9ff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.1);
}

.card:hover .service-icon {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(26, 188, 156, 0.15);
}

.icon-shape {
    width: 3rem;
    height: 3rem;
    background-color: #5e72e4;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.5rem;
    margin-bottom: var(--gap-lg);
}

.icon-shape-warning {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.icon-shape-info {
    background: linear-gradient(135deg, var(--primary-lighter), var(--accent));
}

.icon-shape-success {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
}

.icon-shape-default {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* ============================================================================
   7. SECCIÓN "¿POR QUÉ ELEGIRNOS?" + ESTADÍSTICAS
   ============================================================================ */

.why-us-stats-section {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05), rgba(52, 73, 94, 0.05));
    padding: var(--section-padding) 0;
    border-top: 1px solid rgba(44, 62, 80, 0.2);
    border-bottom: 1px solid rgba(44, 62, 80, 0.2);
}

.why-us-section {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05), rgba(52, 73, 94, 0.05));
    padding: var(--section-padding) 0;
    border-top: 1px solid rgba(44, 62, 80, 0.2);
    border-bottom: 1px solid rgba(44, 62, 80, 0.2);
}

/* Estadísticas */
.stats-container {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 3rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .stats-container {
        padding: 2rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
    }
}

.why-us-card {
    text-align: center;
    padding: var(--card-padding);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background: white;
    border: 1px solid rgba(44, 62, 80, 0.1);
}

.why-us-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.2);
    border-color: var(--primary-light);
}

.why-us-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-lighter));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--gap-lg);
    font-size: 1.5rem;
    color: white;
    animation: float 3s ease-in-out infinite;
}

.why-us-card:nth-child(2) .why-us-icon {
    animation-delay: 0.2s;
}

.why-us-card:nth-child(3) .why-us-icon {
    animation-delay: 0.4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.why-us-title {
    font-size: var(--h3);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: var(--gap-md);
}

.why-us-text {
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .why-us-card {
        margin-bottom: var(--gap-lg);
    }
}

/* ============================================================================
   8. COTIZADOR
   ============================================================================ */

.cotizador-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    padding: var(--section-padding) 0;
}

.cotizador-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--card-padding);
    box-shadow: var(--shadow-sm);
}

.cotizador-form-group {
    margin-bottom: var(--gap-lg);
}

.cotizador-label {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: var(--gap-sm);
    display: block;
    font-size: var(--small);
}

.cotizador-select,
.cotizador-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
}

.cotizador-select:focus,
.cotizador-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.cotizador-input.valid {
    border-color: var(--success);
    background-color: rgba(40, 167, 69, 0.05);
}

.cotizador-input.invalid {
    border-color: var(--danger);
    background-color: rgba(220, 53, 69, 0.05);
}

.cotizador-result {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8e9ea 100%);
    padding: var(--card-padding);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    display: none;
    animation: fadeInUp 0.5s ease;
}

.cotizador-result.visible {
    display: block;
}

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

.resultado-tabla {
    width: 100%;
    background: white;
    border-collapse: collapse;
    margin-top: var(--gap-lg);
    font-size: 0.9rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.resultado-tabla th {
    background: var(--secondary);
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.resultado-tabla td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.resultado-tabla tr:nth-child(even) {
    background: var(--bg-light);
}

.resultado-tabla tr:last-child {
    background: rgba(44, 62, 80, 0.1);
    font-weight: 600;
}

.resultado-valor {
    font-weight: 600;
    color: var(--secondary);
}

.cotizador-botones {
    display: flex;
    gap: var(--gap-md);
    flex-wrap: wrap;
    margin-top: var(--gap-lg);
}

.cotizador-boton {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-family);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-sm);
    font-size: 0.95rem;
}

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

.cotizador-boton-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4);
}

.cotizador-boton-secondary {
    background: white;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.cotizador-boton-secondary:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.cotizador-boton-descargar {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    color: white;
}

.cotizador-boton-descargar:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary-lighter));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.badge-interpolado {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius);
    font-size: var(--small);
    margin-top: var(--gap-sm);
}

/* Loader */
.spinner-small {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(44, 62, 80, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .cotizador-botones {
        flex-direction: column;
    }

    .cotizador-boton {
        min-width: 100%;
    }
}

/* ============================================================================
   9. ALERTAS Y FEEDBACK
   ============================================================================ */

.alert-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    opacity: 0;
    transform: translateX(400px);
    transition: var(--transition);
    z-index: 9999;
    max-width: 400px;
}

.alert-message.visible {
    opacity: 1;
    transform: translateX(0);
}

.alert-message.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-message.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-message.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ============================================================================
   10. PROYECTOS
   ============================================================================ */

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

.card-blog.card-background {
    background: transparent;
    border: none;
    color: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    min-height: 350px;
    transition: var(--transition);
}

.card-blog.card-background:hover {
    transform: translateY(-5px);
}

.card-blog.card-background .full-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.card-blog.card-background:hover .full-background {
    transform: scale(1.05);
}

.card-blog.card-background .card-body {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--gap-lg);
}

.card-blog.card-background .content-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--gap-lg);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.btn-outline-white {
    color: white;
    border: 2px solid white;
    background: transparent;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Modal de Galería */
#galleryModal .modal-body {
    padding: 2rem;
}

#galleryModal .carousel-item img {
    border-radius: var(--radius);
}

/* ============================================================================
   11. PROCESO
   ============================================================================ */

.process-section {
    background: linear-gradient(135deg, var(--secondary), var(--primary-light));
    padding: var(--section-padding) 0;
    color: white;
}

.process-section .section-title h2,
.process-section .section-title p {
    color: white;
}

.icon-lg {
    width: 4rem;
    height: 4rem;
    font-size: 1.2rem;
}

/* ============================================================================
   12. FOOTER
   ============================================================================ */

footer {
    background: var(--secondary);
    color: white;
    padding: var(--section-padding) 0 var(--gap-xl);
}

.footer-custom {
    background: var(--secondary);
    color: white;
    padding: var(--section-padding) 0 var(--gap-xl);
}

footer h4 {
    color: white;
    margin-bottom: var(--gap-lg);
    font-size: var(--h4);
}

footer a {
    color: rgba(255, 255, 255, 0.8);
}

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

footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: var(--gap-md);
}

/* ============================================================================
   13. ANIMACIONES Y EFECTOS
   ============================================================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

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

/* ============================================================================
   14. RESPONSIVE
   ============================================================================ */

@media (max-width: 992px) {
    .section-title h2 {
        font-size: 1.75rem;
    }

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

    h2, .h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding: 2rem;
        --card-padding: 1.5rem;
        --h1: 1.75rem;
        --h2: 1.25rem;
        --h3: 1.1rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
