/* Colores Clave */
:root {
    --color-dark-bg: #1a1a1a;
    --color-medium-dark: #2c2c2c;
    --color-text-light: #f0f0f0;
    --color-kodetyc-blue: #00aaff; /* Azul Aqua (para tecnología y acción) */
    --color-kodetyc-green: #00c853; /* Verde de Acción (para CTAs) */
    --color-accent-dark: #00567f;
    --color-registros-accent: #ffaa00; /* Naranja/Ámbar para Registros */
}

/* Estilos Globales y Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-text-light);
    line-height: 1.6;
    background-color: var(--color-dark-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--color-kodetyc-blue);
    transition: color 0.3s;
}

a:hover {
    color: #66d9ff;
}

/* Títulos de Sección */
h2, h3 {
    color: var(--color-text-light);
}

/* --- 1. CABECERA (HEADER) --- */
.header {
    background-color: var(--color-medium-dark);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- ESTILOS DEL LOGO BASADO EN TEXTO --- */
.logo {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1;
}

.logo-kodetyc {
    color: var(--color-kodetyc-blue);
    letter-spacing: 1px;
}

.logo-aerial {
    color: var(--color-kodetyc-green);
    font-size: 0.7em;
    font-weight: 500;
    margin-left: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
/* FIN DE ESTILOS DEL LOGO */

.nav a {
    margin-left: 30px;
    font-weight: 500;
    color: var(--color-text-light);
    opacity: 0.8;
}

.nav a:hover {
    color: var(--color-kodetyc-blue);
    opacity: 1;
}

.cta-button-nav {
    background: linear-gradient(90deg, var(--color-kodetyc-blue), var(--color-kodetyc-green));
    color: white !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: bold;
    opacity: 1;
    margin-left: 40px;
}

/* --- 2. SECCIÓN HERO --- */
.hero-section {
    background-size: cover;
    background-position: center;
    padding: 180px 0 150px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.2));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 4em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.hero-section .subtitle {
    font-size: 1.4em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button-hero {
    display: inline-block;
    background-color: var(--color-kodetyc-green); 
    color: white;
    padding: 18px 40px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 8px 15px rgba(0, 200, 83, 0.3);
}

.cta-button-hero:hover {
    background-color: #009624;
    transform: translateY(-2px);
}

.availability-text {
    margin-top: 25px;
    font-size: 1em;
    opacity: 0.7;
    color: var(--color-text-light);
}

/* --- 3. SECCIÓN FUNCIONALIDADES (3 COLUMNAS) --- */
.features-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--color-dark-bg);
}

.features-section h2 {
    font-size: 2.5em;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.features-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap; 
}

.feature-card {
    background-color: var(--color-medium-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-accent-dark);
    text-align: left;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.feature-card.large-card {
    flex-basis: calc(33.33% - 20px); 
    max-width: 380px;
}

.feature-card h3 {
    color: var(--color-kodetyc-blue);
    margin-top: 15px;
    margin-bottom: 10px;
}

.feature-card p {
    color: #bbb;
    margin-bottom: 15px;
    min-height: 100px; /* Asegura altura consistente */
}

.mockup-img {
    max-width: 60%; 
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Enlaces de "Ver detalles" */
.feature-card a {
    font-weight: bold;
    color: var(--color-kodetyc-green);
}
.feature-card a:hover {
    color: #4CAF50;
}


/* --- 4. RECURSOS Y COMUNIDAD (3 tarjetas en la página principal) --- */
.community-section {
    padding: 100px 0;
    background-color: #222222; 
    text-align: center;
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--color-text-light);
}

.section-subtitle {
    font-size: 1.1em;
    margin-bottom: 60px;
    color: #bbb;
}

.community-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; 
}

.resource-card {
    background-color: var(--color-medium-dark);
    padding: 30px;
    border-radius: 12px; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); 
    flex: 1;
    max-width: 350px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.08); 
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative; 
    overflow: hidden; 
}

/* Efecto de gradiente de borde lateral */
.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px; 
    height: 100%;
    background: linear-gradient(to bottom, transparent, transparent); 
    transition: background 0.3s ease-in-out;
}

.resource-card.youtube::before {
    background: linear-gradient(to bottom, #ff0000, #a30000);
}

.resource-card.discord::before {
    background: linear-gradient(to bottom, #7289da, #4c66cc);
}

.resource-card.blog::before {
    background: linear-gradient(to bottom, var(--color-kodetyc-green), #009624);
}

.resource-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6); 
    border-color: rgba(255, 255, 255, 0.15);
}

/* Contenedor del Icono */
.card-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.05); 
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-card .card-icon-wrapper i {
    font-size: 2.2em; 
}

/* Colores de los iconos */
.resource-card.youtube .card-icon-wrapper i {
    color: #ff0000;
}

.resource-card.discord .card-icon-wrapper i {
    color: #7289da;
}

.resource-card.blog .card-icon-wrapper i {
    color: var(--color-kodetyc-green);
}

.resource-card h3 {
    margin-bottom: 15px;
    color: var(--color-text-light); 
}

.resource-card p {
    color: #bbb;
    margin-bottom: 25px;
    min-height: 75px; 
}

.btn-resource {
    display: inline-block;
    color: var(--color-kodetyc-blue); 
    font-weight: bold;
    transition: color 0.3s;
}

.btn-resource:hover {
    color: #66d9ff; 
}


/* --- 5. SECCIÓN DE CONTACTO --- */
.contact-section {
    padding: 100px 0;
    background-color: var(--color-dark-bg);
}

.contact-grid {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-form {
    flex: 2;
}

.contact-info {
    flex: 1;
    background-color: var(--color-medium-dark);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-accent-dark);
}

.contact-form h2 {
    margin-bottom: 30px;
    font-size: 2.2em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 5px;
    font-size: 1em;
    background-color: #222;
    color: var(--color-text-light);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.privacy-check {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    color: #bbb;
}

.privacy-check input {
    margin-right: 10px;
    margin-top: 5px;
}

.submit-btn {
    background-color: var(--color-kodetyc-green);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #009624;
}

.contact-info h3 {
    color: var(--color-kodetyc-blue);
    margin-top: 0;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 25px;
    color: #bbb;
}


/* --- 6. PIE DE PÁGINA (FOOTER) --- */
.footer {
    background-color: var(--color-medium-dark);
    color: #888;
    padding: 20px 0;
    font-size: 0.9em;
    border-top: 1px solid #333;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    margin-left: 20px;
    color: #888;
}

.footer-links a:hover {
    color: var(--color-kodetyc-blue);
}


/* ========================================================= */
/* --- ESTILOS PARA LAS PÁGINAS DE DETALLE (MODERNO Y ESPECTACULAR) --- */
/* ========================================================= */

.page-content-detail {
    min-height: calc(100vh - 80px); 
    padding: 100px 0;
    text-align: center;
    background-color: var(--color-dark-bg);
    position: relative;
    overflow: hidden; 
}

/* Encabezado Principal */
.detail-header {
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
}

.detail-header h1 {
    font-size: 3.5em;
    margin-top: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitle-detail {
    font-size: 1.4em;
    color: var(--color-kodetyc-blue); 
    font-weight: 300;
}

/* Icono Grande de la Sección */
.detail-icon {
    font-size: 4.5em;
    padding: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.5s;
}

/* Colores de Iconos y Resplandor por Página */
.equipos-section .detail-icon {
    color: var(--color-kodetyc-blue);
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.3);
}
.documentacion-section .detail-icon {
    color: var(--color-kodetyc-green); 
    box-shadow: 0 0 25px rgba(0, 200, 83, 0.3);
}
.registros-section .detail-icon {
    color: var(--color-registros-accent); 
    box-shadow: 0 0 25px rgba(255, 170, 0, 0.3);
}

/* Cuerpo del Contenido */
.detail-body {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.detail-body > p {
    font-size: 1.1em;
    color: #ccc;
    margin-bottom: 40px;
    text-align: center;
}

.detail-body h2 {
    color: var(--color-text-light);
    font-size: 2.2em;
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
}

/* --- REJILLA DE CARACTERÍSTICAS (Diseño Espectacular) --- */

.feature-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-item {
    background-color: var(--color-medium-dark);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-accent-dark);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.feature-item h3 {
    font-size: 1.4em;
    color: var(--color-kodetyc-green); /* Título del ítem en verde de acción */
    margin-bottom: 10px;
}

.feature-item p {
    color: #bbb;
    font-size: 0.95em;
    line-height: 1.5;
}

.feature-item b {
    color: var(--color-kodetyc-blue); /* Negritas en azul para destacar */
}

.feature-icon-small {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--color-kodetyc-blue);
    display: block;
    margin: 0 auto 10px;
}

/* Imagen Mockup */
.detail-mockup {
    display: block;
    max-width: 320px;
    height: auto;
    margin: 60px auto; 
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    border: 5px solid var(--color-dark-bg);
}

/* CTA de las Páginas de Detalle (Uniforme y llamativo) */
.cta-resource {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-kodetyc-blue), var(--color-kodetyc-green));
    color: white !important;
    padding: 15px 35px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 6px 15px rgba(0, 170, 255, 0.4);
}

.cta-resource:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 170, 255, 0.6);
}


/* --- MEDIA QUERIES (RESPONSIVE) --- */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .nav {
        margin-top: 15px;
        text-align: center;
    }

    .nav a {
        margin: 0 10px;
        display: inline-block;
        padding: 5px 0;
    }
    
    .cta-button-nav {
        margin-left: 0;
        margin-top: 10px;
    }

    .hero-section {
        padding: 100px 0;
    }

    .hero-section h1 {
        font-size: 3em;
    }

    .features-grid, .community-grid, .contact-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .feature-card.large-card {
        flex-basis: 100%;
        max-width: 100%;
    }

    .feature-card {
        padding: 25px;
    }
    
    .contact-info {
        order: -1; 
        margin-bottom: 30px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 10px;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
    
    /* Ajustes para las páginas de detalle en móvil */
    .detail-header h1 {
        font-size: 2.5em;
    }
    .subtitle-detail {
        font-size: 1.1em;
    }
    .detail-body {
        padding: 0 10px;
    }
    .feature-list-grid {
        grid-template-columns: 1fr;
    }
    .detail-mockup {
        max-width: 90%;
    }
    .resource-card p {
        min-height: auto; 
    }
}