/* =========================================
   1. CONFIGURACIÓN Y VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    /* Paleta de Colores WISE4C */
    --wise-deep: #381F6A; /* Azul Profundo - Fondos principales, Texto fuerte */
    --wise-purple: #CC0099; /* Púrpura Real - Acentos, Botones, Degradados */
    --wise-teal: #0E046C; /* Azul Verdoso - Detalles, Iconografía, Bordes */
    /* Neutros */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #334155;
    --text-light: #94a3b8;
    /* Tipografía */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

/* Reseteo Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* Utilidades de Contenedor */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--wise-deep);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

/* =========================================
      2. NAVEGACIÓN
      ========================================= */
.main-nav {
    background-color: var(--wise-deep);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    .main-nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

    .nav-links a {
        color: rgba(255, 255, 255, 0.8);
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 1px;
        font-weight: 700;
    }

        .nav-links a:hover {
            color: var(--wise-purple);
        }

.btn-contact {
    background-color: var(--wise-purple);
    color: white !important;
    padding: 8px 20px;
    border-radius: 2px;
}

    .btn-contact:hover {
        background-color: #5a1263; /* Un tono más oscuro del púrpura */
    }

/* =========================================
      3. HERO SECTION (ENCABEZADO)
      ========================================= */
.hero-section {
    background: linear-gradient(135deg, var(--wise-deep) 0%, #1e293b 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center; /* Centrado en móvil por defecto */
    position: relative;
    overflow: hidden;
    color: white;
}

    /* Patrón de fondo sutil (simulado con CSS) */
    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(var(--wise-purple) 1px, transparent 1px);
        background-size: 40px 40px;
        opacity: 0.1;
        pointer-events: none;
    }

    .hero-section .container {
        position: relative;
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-items: center; /* Centrado */
    }

    .hero-section h2 {
        color: var(--wise-purple);
        font-family: "Verdana";
        font-size: 1.1rem;
        font-weight: 700;
        letter-spacing: 0.3em;
        text-transform: uppercase;
        margin-bottom: 1rem;
    }

    .hero-section h1 {
        font-family: "Verdana";
        font-size: 3.5rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
        color: white;
    }

        .hero-section h1 span {
            font-family: "Verdana";
            background: linear-gradient(to right, var(--wise-purple), #d97706);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

    .hero-section p {
        font-size: 1.25rem;
        max-width: 700px;
        margin-bottom: 3rem;
        color: #cbd5e1;
        font-weight: 300;
    }

.btn-primary {
    background-color: var(--wise-purple);
    color: white;
    padding: 15px 40px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
    font-size: 0.9rem;
}

    .btn-primary:hover {
        background-color: white;
        color: var(--wise-deep);
    }

/* =========================================
      4. SECCIONES GENERALES
      ========================================= */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

    .section-header h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        position: relative;
        display: inline-block;
    }

        .section-header h2::after {
            content: '';
            display: block;
            width: 60px;
            height: 3px;
            background-color: var(--wise-purple);
            margin: 15px auto 0;
        }

    .section-header p {
        font-size: 1.2rem;
        color: var(--text-main);
    }

/* =========================================
      5. FILOSOFÍA (GRID)
      ========================================= */
.philosophy-section {
    background-color: var(--bg-white);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.pillar {
    background: var(--bg-light);
    padding: 30px 20px;
    border-top: 4px solid var(--wise-teal);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .pillar:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        border-top-color: var(--wise-purple);
    }

    .pillar h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .pillar p {
        font-size: 0.95rem;
        color: #64748b;
    }

.DTpilar {
    align-content: center;
    justify-content: center;
    align-items: center;
    text-align: center;

}
/* =========================================
      6. CICLO DE VIDA (TIMELINE)
      ========================================= */
.lifecycle-section {
    background-color: var(--bg-light);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

    /* Línea vertical central */
    .timeline::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%; /* Centro en escritorio */
        width: 2px;
        background: #cbd5e1;
        transform: translateX(-50%);
    }

.step {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    clear: both;
}

    /* Alternancia Izquierda / Derecha */
    .step:nth-child(odd) {
        float: left;
        padding-right: 40px;
        text-align: right;
    }

    .step:nth-child(even) {
        float: right;
        padding-left: 40px;
        text-align: left;
    }

/* Círculo central con número */
.step-number {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--wise-deep);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--wise-purple);
    z-index: 10;
}

.step:nth-child(odd) .step-number {
    right: -20px; /* Mitad del ancho para centrar en línea */
}

.step:nth-child(even) .step-number {
    left: -20px;
}

.step-content {
    background: white;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--wise-teal);
}

    .step-content h3 {
        color: var(--wise-deep);
        margin-bottom: 5px;
    }

    .step-content h4 {
        font-family: var(--font-sans);
        font-size: 0.8rem;
        text-transform: uppercase;
        color: var(--wise-purple);
        margin-bottom: 15px;
        letter-spacing: 1px;
    }

/* Limpiar floats al final */
.timeline::after {
    content: "";
    display: table;
    clear: both;
}

/* =========================================
      7. MODELOS DE SERVICIO
      ========================================= */
.services-section {
    background-color: var(--wise-deep);
    color: white;
}

    .services-section h2 {
        color: white;
    }

    .services-section p {
        color: white;
    }

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-model {
    background: var(--bg-light);
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid var(--wise-purple);
    transition: background 0.3s;
}

    .service-model:hover {
        background: var(--bg-white);
    }

    .service-model h3 {
        color: var(--wise-deep);
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

.badge {
    display: inline-block;
    background-color: var(--wise-teal);
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.service-model ul {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.service-model li {
    font-size: 0.75rem;
    color: #646465;
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.service-model p{
    color: var(--wise-deep);
}

.service-model li::before {
    content: '@'; 
    color: var(--wise-purple);
    position: absolute;
    left: 0;
}

/* =========================================
      8. METODOLOGÍA
      ========================================= */
.methodology-section {
    background-color: white;
}

    .methodology-section .container {
        display: flex;
        align-items: center;
        gap: 60px;
    }

.methodology-content {
    flex: 1;
}

    .methodology-content h4 {
        font-family: var(--font-sans);
        color: var(--wise-purple);
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    .methodology-content h3 {
        font-size: 1.2rem;
        line-height: 1;
        margin-bottom: 20px;
    }

    .methodology-content ul {
        margin: 20px 0;
    }

    .methodology-content li {
        margin-bottom: 5px;
        display: flex;
        align-items: flex-start;
    }

        .methodology-content li strong {
            color: var(--wise-deep);
            margin-right: 5px;
        }

.link-cta {
    color: var(--bg-light);
    background: var(--wise-purple);
    font-weight: bold;
    border: 10px solid white;
    padding: 15px;
}

    .link-cta:hover {
        color: var(--wise-teal);
    }

.domains-visual {
    flex: 1;
    background: var(--bg-light);
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.domain-item {
    background: white;
    padding: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

    .domain-item h4 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .domain-item span {
        font-size: 0.6rem;
        color: var(--wise-teal);
        text-transform: uppercase;
        line-height: 0.6rem;
    }

.tech-debt-indicator {
    background-color: var(--wise-deep);
    color: white;
    padding: 20px;
    text-align: center;
}

    .tech-debt-indicator h3 {
        color: white;
        margin-bottom: 5px;
    }

/* =========================================
      9. CONTACTO
      ========================================= */
.contact-section {
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.contact-info, .contact-action {
    padding: 50px;
}

.contact-info {
    background-color: #f1f5f9;
}

.contact-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--text-main);
}

.btn-submit {
    margin-top: 30px;
    background-color: var(--wise-deep);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

    .btn-submit:hover {
        background-color: var(--wise-purple);
    }

/* =========================================
      10. FOOTER
      ========================================= */
.main-footer {
    background-color: var(--wise-deep);
    color: #94a3b8;
    padding: 50px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

    .main-footer .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
}

    .footer-logo span {
        color: var(--wise-purple);
    }

.footer-links a {
    color: #94a3b8;
    margin-left: 20px;
}

    .footer-links a:hover {
        color: white;
    }

/* =========================================
      11. RESPONSIVE (MÓVIL)
      ========================================= */
@media (max-width: 768px) {
    /* Nav */
    .nav-links {
        display: none; /* En versión simple HTML ocultamos menú móvil complejo */
    }

    /* Hero */
    .hero-section h1 {
        font-size: 2.5rem;
    }

    /* Timeline a Vertical Simple */
    .timeline::before {
        left: 20px;
    }

    .step {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }

        .step:nth-child(odd), .step:nth-child(even) {
            float: none;
            text-align: left;
            padding-left: 60px;
            padding-right: 0;
        }

            .step:nth-child(odd) .step-number,
            .step:nth-child(even) .step-number {
                left: 0;
                right: auto;
            }

    /* Metodología */
    .methodology-section .container {
        flex-direction: column;
    }

    /* Contacto */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .main-footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--wise-purple);
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    text-decoration: solid;
    /*text-size-adjust: 36px;*/
    transition: transform 0.3s ease;
}

