:root {
    --negro: #000000;
    --amarillo: #f3ce37;
    --blanco: #ffffff;
    --naranja: #f8b133;
    --gris: #ede6d9;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--blanco);
    background-color: var(--naranja);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    background-color: var(--negro);
    color: var(--blanco);
    padding: 15px 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 35px;
    filter: brightness(1.2);
}

.navbar .nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar .nav-menu ul {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.navbar .nav-menu ul li a {
    color: var(--blanco);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s ease;
}

.navbar .nav-menu ul li a:hover {
    color: var(--amarillo);
}

.navbar .nav-menu .btn-nav {
    background-color: var(--naranja);
    color: var(--negro);
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    border: none;
    cursor: pointer;
}

/* Botones y menú para móvil (ocultos por defecto en escritorio) */
.btn-nav-mobile,
.menu-toggle,
.navbar-actions {
    display: none;
}

/* Hero Section */
.hero-section {
    background-image: url(../img/home/portada-home.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--naranja);
    text-align: center;
    padding: 150px 20px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    left: -20vw;
    transform: skewX(-20deg);
}

.hero-section::after {
    right: -20vw;
    transform: skewX(20deg);
}

.hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-section h1 {
    font-size: 3.8em;
    margin-bottom: 25px;
    color: var(--naranja);
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 0;
    color: var(--blanco);
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Video Promocional */
.video-promo-section {
    background-color: var(--negro);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.video-promo-top-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--amarillo) 20%, var(--naranja) 80%, transparent);
    z-index: 1;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Sección de Cards */
.cards-section {
    background-color: var(--negro);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cards-section::before,
.cards-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--amarillo) 20%, var(--naranja) 80%, transparent);
}

.cards-section::before {
    top: 0;
}

.cards-section::after {
    bottom: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
}

.card-item {
    background-color: var(--naranja);
    border: none;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.card-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-item h3 {
    font-size: 1.0em;
    color: var(--negro);
    margin-bottom: 25px;
    font-weight: 700;
}

.card-btn {
    display: inline-block;
    background-color: var(--negro);
    color: var(--naranja);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: auto;
}

.card-btn:hover {
    background-color: var(--blanco);
    color: var(--negro);
    transform: translateY(-2px);
}

/* Sección "Sobre Nosotros" */
.about-section {
    background-image: url(../img/home/nosotros-fondo-home.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    color: #CCCCCC;
}

.about-section .container::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--amarillo) 20%, var(--naranja) 80%, transparent);
    z-index: 1;
    bottom: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
    position: relative;
}

.about-visual-left {
    background-color: var(--naranja);
    position: relative;
    margin-left: -20%;
    width: 140%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.about-visual-left .about-image-container {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    z-index: 2;
    transform: translateX(-15%);
}

.about-yellow-box {
    position: absolute;
    top: 50%;
    left: 22%;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-logo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.about-logo-content img {
    height: 400px;
    margin-left: -50%;
    width: auto;
    object-fit: contain;
    margin-bottom: 0;
}

.about-text-right {
    text-align: center;
    padding-left: 120px;
    padding-right: 0;
}

.about-text-right h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8em;
    font-weight: 700;
    color: var(--naranja);
    margin-bottom: 20px;
}

.about-text-right p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #CCCCCC;
}

.about-text-right .about-button {
    display: inline-block;
    background-color: transparent;
    color: var(--naranja);
    padding: 10px 20px;
    border: 1px solid var(--naranja);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.about-text-right .about-button:hover {
    background-color: var(--naranja);
    color: #000000;
    transform: translateY(-2px);
}

/* Sección de Testimonios */
.testimonials-section {
    background-image: url(../img/home/testimonios-fondo-home.png);
    background-size: cover;
    background-position: initial;
    background-repeat: no-repeat;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.testimonials-section .container::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--amarillo) 20%, var(--naranja) 80%, transparent);
    z-index: 1;
}

.testimonials-section .container::before {
    top: 0;
}

.testimonials-section .container::after {
    bottom: 0;
}

.testimonials-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    font-weight: 700;
    color: var(--blanco);
    text-align: center;
    margin-bottom: 60px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.testimonial-card {
    background-color: var(--gris);
    border: none;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    text-align: left;
    color: var(--negro);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-header img {
    height: 40px;
    width: auto;
    margin-right: 15px;
}

.testimonial-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--negro);
}

.testimonial-card p {
    font-family: 'Poppins', sans-serif;
    text-align: justify;
    font-size: 0.8em;
    line-height: 1.8;
}


/* Footer */
.footer {
    width: 100%;
}

.footer-top {
    background-image: url(../img/home/footer01.png);
    background-size: cover;
    background-position: initial;
    background-repeat: no-repeat;
    display: flex;
    justify-content: flex-start;
    padding: 60px 10%;
    color: var(--negro);
    position: relative;
    align-items: flex-start;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 150px;
    position: relative;
}

.footer-logo a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.footer-logo-image {
    position: absolute;
    left: 100px;
    width: 150px;
    max-height: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.footer-logo-image:hover {
    transform: scale(1.05);
}

.footer-links {
    display: flex;
    gap: 100px;
    margin-left: 300px;
    margin-top: -2%;
}

.link-column h4 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--negro);
}

.link-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-column li {
    margin-bottom: 8px;
}

.link-column li a {
    font-size: 0.95em;
    color: var(--negro);
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-column li a:hover {
    color: var(--amarillo);
    cursor: pointer;
}

.footer-social-media {
    background-image: url(../img/home/footer02.png);
    background-size: cover;
    background-position: initial;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 20px 0;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--negro);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--naranja);
    font-size: 1.5em;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    background-color: var(--blanco);
    color: var(--negro);
}

.footer-bottom {
    background-image: url(../img/home/footer03.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 20px 5%;
    color: var(--negro);
    font-size: 0.9em;
}

/* Media Queries para Responsive Design */
@media (max-width: 1024px) {
    /* Navbar */
    .navbar .logo {
        margin-left: 0;
    }

    .navbar .nav-menu ul {
        gap: 20px;
    }

    /* Hero Section */
    .hero-section {
        padding: 120px 10px;
        min-height: 50vh;
    }

    .hero-section h1 {
        font-size: 3em;
    }

    .hero-section p {
        font-size: 1.1em;
    }

    /* Cards Section */
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    /* Sobre Nosotros */
    .about-content {
        gap: 20px;
    }

    .about-text-right {
        padding-left: 50px;
    }

    .about-visual-left {
        height: 350px;
    }

    .about-logo-content img {
        height: 350px;
    }

    /* Testimonios */
    .testimonial-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    /* Footer */
    .footer-top {
        padding: 40px 5%;
    }

    .footer-links {
        gap: 50px;
    }
}

@media (max-width: 767px) {
    /* Navbar */
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap; /* Permite que los elementos pasen a la siguiente línea si es necesario */
    }

    .navbar .logo {
        margin: 0;
        margin-right: auto; /* Empuja el logo a la izquierda */
    }

    /* Ocultar el menú de escritorio */
    .navbar .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--negro);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease-in-out;
        text-align: center;
        flex-direction: column; /* Asegura que el menú desplegable sea vertical */
    }

    .navbar .nav-menu.active {
        height: auto;
        display: flex;
    }

    /* Mostrar y estilizar el botón y el menú de móvil */
    .navbar .nav-menu ul {
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        gap: 0;
    }

    .navbar .nav-menu ul li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar .nav-menu ul li a {
        display: block;
        padding: 15px 0;
    }

    .navbar-actions {
        display: flex;
        align-items: center;
        gap: 15px; /* Espacio entre el botón y el icono del menú */
    }

    .navbar .btn-nav {
        display: block;
        padding: 8px 18px;
    }
    
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--blanco);
        font-size: 1.5em;
        cursor: pointer;
    }

    /* Hero Section */
    .hero-section {
        padding: 80px 10px;
        min-height: 40vh;
    }

    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1em;
    }

    /* Cards Section */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Sobre Nosotros */
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-visual-left {
        width: 100%;
        margin-left: 0;
        min-height: 250px;
        height: auto;
        justify-content: center;
        padding: 20px;
    }

    .about-visual-left .about-image-container {
        position: static;
        width: 100%;
        height: auto;
        transform: none;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-yellow-box {
        position: static;
        transform: none;
        width: auto;
    }

    .about-logo-content img {
        height: 230px;
        width: 230px;
        margin-left: 0;
    }

    .about-text-right {
        text-align: center;
        padding: 20px;
    }

    .about-text-right h2 {
        font-size: 2em;
    }

    /* Testimonios */
    .testimonials-section h2 {
        font-size: 2.5em;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .testimonial-card {
        padding: 20px;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        align-items: center;
        padding: 40px 5%;
    }

    .footer-logo {
        height: auto;
        margin-bottom: 20px;
    }

    .footer-logo-image {
        position: static;
        width: 120px;
        margin-bottom: 20px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-left: 0;
        margin-top: 20px;
        text-align: center;
    }

    .link-column h4 {
        margin-bottom: 10px;
    }

    .footer-social-media {
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2em;
    }

    /* Sobre Nosotros */
    .about-text-right h2 {
        font-size: 1.8em;
    }

    /* Testimonios */
    .testimonials-section h2 {
        font-size: 2em;
    }
}