/*====================
  VARIABLES Y RESET
====================*/
:root {
    /* Paleta de colores principal - Tecnológica y sobria */
    --primary-color: #CD0000;       /* Rojo primario */
    --primary-light: #FF3333;       /* Rojo claro */
    --primary-dark: #8B0000;        /* Rojo oscuro */
    --secondary-color: #5110b9;     /* Morado Suave para estilos visibles */
    --accent-color: #8b5cf6;        /* Púrpura para efectos especiales */
    
    /* Colores neutros */
    --dark: #111827;                /* Casi negro */
    --dark-gray: #1f2937;           /* Gris oscuro */
    --mid-gray: #4b5563;            /* Gris medio */
    --light-gray: #9ca3af;          /* Gris claro */
    --very-light-gray: #f3f4f6;     /* Gris muy claro */
    --white: #ffffff;               /* Blanco */
    
    /* Fuentes */
    --font-primary: 'Montserrat', 'Roboto', sans-serif;
    --font-heading: 'Montserrat', 'Roboto', sans-serif;
    
    /* Tamaños y espaciados */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* Reset básico */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

p{
    text-align: justify;
}

a:hover {
    color: var(--accent-color);
}

ul, ol {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
}

button, .btn {
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;

    align-items: center;
    align-content: center;
    align-self: center;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* ======== Tipografía ======== */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
}

h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subheading {
    color: var(--primary-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 600;
}

.lead {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-light);
    opacity: 0.5;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* SECTION HEADER - Estilos para los títulos de sección */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    color: var(--mid-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/*====================
  BOTONES
====================*/
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    text-align: center;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.btn-contacto {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-contacto:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/*====================
  SECCIÓN HERO
====================*/
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-height) + 2rem) 0 4rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)),
                url('../img/vr-bg.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
    transform: translateZ(0);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    color: var(--mid-gray);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image img {
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/*====================
  SECCIONES GENERALES
====================*/
section {
    padding: 6rem 0;
}

/*====================
  SECCIÓN SOLUCIONES
====================*/
.soluciones {
    background-color: var(--very-light-gray);
    padding: 8vh 0 8vh 0;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25vh, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(205, 0, 0, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--dark);
}

.card p {
    margin: 0;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--mid-gray);
}

/* Iconos Font Awesome alternativos para compatibilidad */
.fa-vr-cardboard, .fa-virtual-reality {
    font-weight: 900;
}

.fa-users-gear, .fa-users-cog {
    font-weight: 900;
}

/*====================
  SECCIÓN BENEFICIOS
====================*/
.beneficios {
    padding: 6rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.benefit-item {
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-content h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.benefit-content h3 i {
    color: var(--primary-color);
}

.benefit-content p {
    color: var(--mid-gray);
    line-height: 1.6;
}

.benefit-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/*====================
    ENTRENAMIENTO
====================*/

    .vr-training-section {
        display: flex;
        min-height: 100vh;
        align-items: stretch;
    }

    .image-container {
        flex: 1;
        position: relative;
        overflow: hidden;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .hero-image:hover {
        transform: scale(1.05);
    }

    .image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, rgba(220, 38, 38, 0.1), rgba(0, 0, 0, 0.2));
    }

    .content-container {
        flex: 1;
        padding: 4rem 3rem;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
    }

    .content-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(to bottom, #dc2626, #ef4444);
    }

    .company-badge {
        display: inline-block;
        background: linear-gradient(135deg, #dc2626, #ef4444);
        color: white;
        padding: 0.5rem 1.2rem;
        border-radius: 25px;
        font-size: 0.9rem;
        font-weight: bold;
        margin-bottom: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    }

    .main-title {
        color: #dc2626;
        font-size: 2.8rem;
        font-weight: bold;
        margin-bottom: 1rem;
        line-height: 1.2;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .subtitle {
        color: #dc2626;
        font-size: 1.4rem;
        font-weight: 600;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

    .description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        color: #4b5563;
        line-height: 1.8;
    }

    .red-highlight {
        color: #dc2626;
        font-weight: bold;
    }

    .benefits-list {
        margin: 2rem 0;
    }

    .benefit-item {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        padding: 0.8rem;
        border-radius: 8px;
        border-left: 4px solid #dc2626;
        transition: all 0.3s ease;
    }

    .benefit-icon {
        width: 20px;
        height: 20px;
        background: #dc2626;
        border-radius: 50%;
        margin-right: 1rem;
        flex-shrink: 0;
        position: relative;
    }

    .benefit-icon::after {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 12px;
        font-weight: bold;
    }

    .cta-section {
        margin-top: 2rem;
        padding: 2rem;
        background: linear-gradient(135deg, #dc2626, #ef4444);
        border-radius: 15px;
        color: white;
        text-align: center;
        box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    }

    .cta-title {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 0.5rem;
    }

    .cta-text {
        opacity: 0.9;
        font-size: 1rem;
    }

    @media (max-width: 768px) {
        .vr-training-section {
            flex-direction: column;
            min-height: auto;
        }

        .image-container {
            height: 50vh;
       }

        .content-container {
            padding: 2rem 1.5rem;
        }
        .main-title {
            font-size: 2.2rem;
        }
        .subtitle {
            font-size: 1.2rem;
        }
    }
    
/*====================
  SECCIÓN TESTIMONIOS
====================*/
.testimonios {
    background-color: var(--very-light-gray);
    padding: 6rem 0;
}

.testimonios-slider {
    position: relative;
    padding-bottom: 3rem;
}

.testimonio-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonio-text {
    position: relative;
    margin-bottom: 2rem;
}

.testimonio-text i {
    font-size: 2rem;
    color: var(--primary-light);
    opacity: 0.3;
    position: absolute;
    top: -1rem;
    left: -1rem;
}

.testimonio-text p {
    color: var(--mid-gray);
    line-height: 1.6;
    font-style: italic;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonio-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.2rem;
    color: var(--dark);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--mid-gray);
}

/* Paginación de testimonios */
.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}

/*====================
  SECCIÓN CONTACTO
====================*/
.contacto {
    background: linear-gradient(135deg, var(--dark), var(--dark-gray));
    color: var(--white);
    padding: 6rem 0;
}

.contacto .section-header {
    text-align: left;
    margin-left: 0;
}

.contacto h2, .contacto h4 {
    color: var(--white);
}

.contacto .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-details {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-light);
}

.contact-item h4 {
    color: var(--white);
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    background-color: #fbf9f9;
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(205, 0, 0, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.i-contact {
    position: absolute;
    bottom: 10rem;
    right: 2%;
    z-index: 1000;
}

/* ===== Footer ===== */
footer {
    background-color: #0e1620;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #ff5a5a;
}

.footer-column p {
    color: #ccc;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: #c00000;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Botón Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

/*====================
  MEDIA QUERIES
====================*/
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        justify-content: center;
        margin-top: 2rem;
    }

    .tech-showcase {
        flex-direction: column;
    }

    .benefit-item, .benefit-image {
        padding: 1rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .benefit-image {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    form {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: calc(var(--header-height) + 1rem);
    }

    .card-icon {
        margin-bottom: 1rem;
    }

    .tech-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 0;
    }
}