/* 
 * Estilos principales para el sitio web
 * Versión: 2.0 - Estilo Cuemby
 */

/* ===== VARIABLES ===== */
:root {
    /* Colores inspirados*/
    --color-cta: #22C55E;
    /* Verde Lima */
    --color-primary: #3A86FF;
    /* Azul Cobalto Digital */
    --color-secondary: #121212;
    /* Negro casi puro */
    --color-title: #E6E6E6;
    /* Blanco no tan brillante para títulos */
    --color-text: #E0E0E0;
    /* Blanco suave para texto */
    --color-text-light: #CCCCCC;
    /* Blanco más suave para texto secundario */
    --color-white: #ffffff;
    --color-bg: #191A1F;
    /* Fondo oscuro actualizado */
    --color-bg-alt: #2E313D;
    /* Fondo alternativo actualizado */

    /* Nuevos colores para secciones alternadas */
    --color-section-1: #191A1F;
    /* Gris oscuro azulado */
    --color-section-2: #2E313D;
    /* Gris medio azulado */

    /* Fuentes */
    --font-primary: 'Nunito', sans-serif;

    /* Tamaños */
    --container-width: 1200px;
    --header-height: 80px;

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

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 229, 255, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    /* 1rem = 10px */
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-white);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background-color: transparent;
}

input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ===== UTILIDADES ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 10rem 0;
    position: relative;
}

/* Añadir un sutil efecto de gradiente a las secciones alternadas */
.section:nth-of-type(3n+2)::before,
.section:nth-of-type(3n+3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 0;
}

.section:nth-of-type(3n+2)::before {
    background: radial-gradient(circle at top right, var(--color-accent), transparent 70%);
}

.section:nth-of-type(3n+3)::before {
    background: radial-gradient(circle at bottom left, var(--color-primary), transparent 70%);
}

/* Asegurar que el contenido esté por encima del gradiente */
.section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 4rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    color: var(--color-title);
}
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 0.3rem;
    background-color: var(--color-title);
    box-shadow: 0 0 10px rgba(0, 127, 255, 0.5);
}

p {
    color: var(--color-text);
    margin-bottom: 2rem;
    font-size: 1.7rem;
}

.btn {
    display: inline-block;
    padding: 1.4rem 3rem;
    border-radius: 3rem;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--color-gradient);
    color: var(--color-white);
    box-shadow: 0 0 15px rgba(0, 127, 255, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 127, 255, 0.7);
    opacity: 0.9;
}

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

.btn-servicios:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

background-color: var(--color-primary);
color: var(--color-dark);
border: none;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    opacity: 0.9;
    transform: translateY(-3px);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(25, 26, 31, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
}




left: 0;
width: 100%;
height: 1px;
background: var(--color-gradient);
box-shadow: var(--glow-effect);
}

left: 0;
width: 100%;
height: 1px;
background: var(--color-gradient);
box-shadow: var(--glow-effect);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    flex-direction: row;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 35px;
    /* o hasta 56px máximo */
    width: auto;
    display: block;
    /*    transform: translateY(-17px); /* Compensa si aún lo ves desalineado */
}

.main-nav {
    display: flex;
    align-items: center;
    flex: 1 0 auto;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    gap: 3.5rem;
    margin-right: 2rem;
    padding-left: 0;
    list-style: none;
}

.nav-link {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-white);
    position: relative;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    transition: width 0.3s ease, background-color 0.3s ease;
}

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

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

/* Selector de idioma */
.language-selector {
    position: relative;
    margin-left: 2rem;
}

.language-static {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
}

.language-static i {
    color: var(--color-primary);
    font-size: 1.6rem;
}

.language-static span {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-text);
    margin-left: 0.2rem;
}

.language-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.flag-icon {
    width: 2rem;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.language-toggle span {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-text);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: var(--color-bg-alt);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    min-width: 10rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: 0.3rem;
    transition: var(--transition);
    cursor: pointer;
}

.language-option span {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-text);
}

align-items: center;
gap: 0.5rem;
padding: 0.8rem 1rem;
border-radius: 0.3rem;
transition: var(--transition);
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-option span {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-text);
}

/* ===== HERO ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: left;
    color: var(--color-white);
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #191a20, #2e313d);
    z-index: 1;
}

.hero-content {
    max-width: 80rem;
    margin: 0;
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-content h2 {
    font-size: 5.6rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-title);
    text-align: left;
}

.hero-content p {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--color-text);
    text-align: left;
}

/* ===== SERVICIOS ===== */
.servicios {
    background-color: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.servicio-card {
    background-color: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.servicio-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 229, 255, 0.3);
    border-color: rgba(0, 229, 255, 0.3);
}

.servicio-icon {
    width: 7rem;
    height: 7rem;
    margin: 0 auto 2rem;
    /* Eliminada la sombra */
}

.servicio-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-title);
}

/* ===== CONTACTO ===== */
.contacto-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.8), rgba(20, 20, 25, 0.9));
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.info-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(0, 229, 255, 0.2), rgba(0, 229, 255, 0.1));
    border-radius: 50%;
    padding: 0.8rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.info-icon img {
    width: 2rem;
    height: 2rem;
    filter: invert(46%) sepia(98%) saturate(1677%) hue-rotate(203deg) brightness(101%) contrast(101%);
}

.info-text h3 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
    color: var(--color-primary);
}

.contacto-form {
    padding: 2rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contacto-form::before {
    content: '';
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 0;
    pointer-events: none;
}

.form-group {
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--color-text);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: rgba(10, 10, 10, 0.6);
    border: 1px solid #0f3aa733;
    border-radius: 0.8rem;
    color: var(--color-white);
    transition: all 0.3s ease;
    font-size: 1.3rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: rgba(15, 15, 20, 0.8);
}

.form-group input:focus+label,
.form-group textarea:focus+label {
    color: var(--color-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.3);
}

.form-hint {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.2rem;
    font-style: italic;
}

.privacy-policy {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.privacy-policy input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.8rem;
    height: 1.8rem;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 0.4rem;
    background-color: rgba(10, 10, 10, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: all 0.3s ease;
}

.privacy-policy input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.privacy-policy input[type="checkbox"]:checked::before {
    content: '✓';
    color: #000;
    font-size: 1.2rem;
    font-weight: bold;
}

.privacy-policy input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2);
}

.privacy-policy label {
    font-size: 1.2rem;
    color: var(--color-text);
}

.privacy-policy a {
    color: var(--color-primary);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.privacy-policy a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary));
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.privacy-policy a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.btn-primary.btn-cta {
    background: linear-gradient(135deg, var(--color-primary), rgba(0, 229, 255, 0.7));
    color: #000;
    font-weight: 600;
    padding: 1.2rem 2.5rem;
    border-radius: 3rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.4rem;
}

.btn-primary.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.7), var(--color-primary));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary.btn-cta:hover::before {
    opacity: 1;
}

.btn-primary.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 229, 255, 0.2);
}

@media screen and (max-width: 992px) {
    .contacto-content {
        grid-template-columns: 1fr;
    }

    .contacto-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .info-item {
        width: calc(50% - 1rem);
    }
}

@media screen and (max-width: 768px) {
    .contacto-form {
        padding: 3rem 2rem;
    }

    .info-item {
        width: 100%;
    }
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 768px) {
    html {
        font-size: 50%;
    }

    .nav-link {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3.2rem;
    }
}

@media screen and (max-width: 1200px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.servicio-card p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

@media screen and (max-width: 768px) {
    .hero-content {
        margin: 0 auto;
        text-align: center;
    }

    .hero-content h2 {
        text-align: center;
    }

    .hero-content p {
        text-align: center;
    }
}

/* ===== RECURSOS SECTION ===== */
.recursos-content {
    max-width: 1200px;
    margin: 0 auto;
}

.recursos-intro {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.recursos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
}

.recurso-card {
    background-color: var(--color-bg-alt);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recurso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.recurso-image {
    height: 200px;
    overflow: hidden;
}

.recurso-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.recurso-info {
    padding: 2rem;
}

.recurso-info h3 {
    color: var(--color-primary);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.recurso-info h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.recurso-info p {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.recursos-cta {
    text-align: center;
    background-color: var(--color-bg-alt);
    padding: 4rem;
    border-radius: 8px;
    margin-top: 3rem;
}

.recursos-cta h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.recursos-cta p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 1200px) {
    .recursos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .recursos-grid {
        grid-template-columns: 1fr;
    }

    .recursos-cta {
        padding: 3rem 2rem;
    }
}

/* Estilos para el menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--color-white);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

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

    .header .container {
        flex-wrap: nowrap;
    }

    .nav-list {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease-in-out;
        z-index: 5;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        margin: 1.5rem 0;
    }

    .main-nav {
        justify-content: flex-end;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}