/* ========================================
   Variables y Paleta de Colores
   ======================================== */
:root {
    /* Colores principales - mejorados para contraste */
    --color-primary: #D6316E;        /* Rosa fuerte */
    --color-primary-light: #F4A6C8;  /* Rosa claro */
    --color-secondary: #9B59B6;      /* Púrpura */
    --color-secondary-light: #D8BFD8; /* Lavanda claro */
    --color-accent: #F39C12;         /* Naranja dorado */
    --color-dark: #2C3E50;           /* Azul oscuro */
    --color-light: #ECF0F1;          /* Gris muy claro */
    --color-white: #FFFFFF;

    /* Estados */
    --color-success: #27AE60;
    --color-warning: #F39C12;
    --color-danger: #E74C3C;
    --color-info: #3498DB;

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

    /* Transiciones */
    --transition: all 0.3s ease;

    /* Tipografía */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Georgia', serif;
}

/* ========================================
   Reset y Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Header y Navegación
   ======================================== */
header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Menú móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-links.mobile {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active a {
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
}

/* ========================================
   Contenedor Principal
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(214, 49, 110, 0.3), rgba(155, 89, 182, 0.3)),
                url('/static/img/hero.jpg') center/cover no-repeat;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

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

/* ========================================
   Botones
   ======================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

/* ========================================
   Secciones
   ======================================== */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 3rem;
}

/* ========================================
   Cards
   ======================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--color-white);
    border-radius: 15px;
    padding: 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    overflow: hidden;
}

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

.card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.9);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 1.5rem;
}

.card h3 {
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* ========================================
   Process Timeline (Cómo Funciona)
   ======================================== */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(214, 49, 110, 0.05), rgba(155, 89, 182, 0.05));
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, rgba(214, 49, 110, 0.08), rgba(155, 89, 182, 0.08));
}

.process-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(214, 49, 110, 0.3);
    position: relative;
}

.process-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    top: -10px;
    left: -10px;
    opacity: 0.3;
}

.process-content h3 {
    color: var(--color-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.process-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* ========================================
   Features Grid (Por Qué Elegirnos)
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(214, 49, 110, 0.1), rgba(155, 89, 182, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    transform: rotate(5deg) scale(1.05);
}

.feature-content h3 {
    color: var(--color-dark);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feature-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: linear-gradient(135deg, var(--color-dark), #555);
    color: var(--color-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #999;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem 1rem;
        position: relative;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero {
        height: 50vh;
        min-height: 350px;
    }

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

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

    .hero-content {
        padding: 1.5rem;
    }

    .container {
        padding: 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-image {
        height: 150px;
    }

    .card-icon {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
    }

    .card-body {
        padding: 1rem;
    }

    .card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .card p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-timeline {
        gap: 1.5rem;
    }

    .process-step {
        padding: 1.5rem 1rem;
    }

    .process-number {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .process-content h3 {
        font-size: 1.15rem;
    }

    .process-content p {
        font-size: 0.9rem;
    }

    .features-grid {
        gap: 1.5rem;
    }

    .feature-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }

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

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-content h3 {
        font-size: 1.1rem;
    }

    .feature-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .card {
        padding: 0.875rem;
    }

    .card-icon {
        font-size: 1.75rem;
        margin-bottom: 0.4rem;
    }

    .card h3 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.85rem;
    }

    .process-number {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .process-step {
        padding: 1.25rem 0.875rem;
    }

    .process-content h3 {
        font-size: 1rem;
    }

    .process-content p {
        font-size: 0.85rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
    }

    .feature-content h3 {
        font-size: 1rem;
    }

    .feature-content p {
        font-size: 0.85rem;
    }
}

/* ========================================
   Bottom Navigation (Mobile)
   ======================================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 100%;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    color: #666;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.75rem;
    gap: 0.25rem;
}

.bottom-nav-item .icon {
    font-size: 1.5rem;
}

.bottom-nav-item.active {
    color: var(--color-primary);
}

.bottom-nav-item:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }

    main {
        padding-bottom: 80px;
    }

    footer {
        margin-bottom: 80px;
    }
}
