
@import 'animate.css';

/* Ocultar elementos animados hasta que se ejecute la animación */
.animate__animated {
  opacity: 0;
}

@font-face {
  font-family: 'Poppins';
  src: url('/assets/font/poppins-latin-400-normal.woff2') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url(/assets/font/poppins-latin-700-normal.woff2) format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root{
    --primaty-color: #ff5500;
    --secundary-color: #1e1b26;
    
    /* Tipografía */
    --fs-h1: clamp(4rem, -0.5rem + 9.375vw, 7rem);
    --fs-h1-alt: clamp(3rem, 1.6667rem + 2.7778vw, 4.5rem);
    --fs-h2: clamp(1.5rem, 0.3333rem + 1.3889vw, 2.5rem);
    --fs-lema: clamp(1.7rem, 1.0333rem + 1.3889vw, 2.7rem);
    --fs-h3: 1.5rem;
    --fs-p: 1.3rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'Poppins', sans-serif;
    line-height: 1.4;
}

html {
    scroll-behavior: smooth;
}


/** Fuentes */
h1, .h1Class, .linksNavbar{
    text-transform: uppercase;
}

h1, .h1Class, .linksNavbar:hover {
    color: white;
    
}

h1 {
    font-size: var(--fs-h1);
    font-weight: 700;
    line-height: 1;
}

.h1Class {
    font-size: var(--fs-h1-alt);
        font-weight: 700;
        line-height: 1;
}

h2 {
    font-size: var(--fs-h2);
}

.subtituloColor {
    color: var(--primaty-color);
}

h3 {
    font-size: var(--fs-h3);
    margin: 1rem;
}

.lema {
    font-size: var(--fs-lema);
    font-weight: 700;
    margin: 2rem 0;
}

p {
    font-size: var(--fs-p);
}

.pEnvios {
    font-size: clamp(1rem, 0.3333rem + 1.3889vw, 2rem);
    padding: 2rem 0;
    font-weight: 700;
}





/**Header*/

/** Barra de navegacion*/
.logo img {
    width: clamp(1.5rem, -0.7282rem + 4.6602vw, 2.5rem);
    z-index: 20;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 7%;
    background-color: var(--secundary-color);
    color: white;
    width: 100%;
    z-index: 10;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
}

.linksNavbar {
    color: var(--primaty-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.5rem;
}


/* Ocultar el botón de hamburguesa en escritorio */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 3px 0;
    border-radius: 10px;
}

/** Boton idioma*/
.botonIdioma{
    padding: .7rem 1rem;
    background-color: #ff5500;
    color: white;
    border: none;
    border-radius: .2rem;
    cursor: pointer;
    font-size: 1.5rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    font-weight: bold;
    letter-spacing: 0.1rem;
}

.botonIdioma p {
    z-index: 2;
    margin: 0;
    flex: 1;
    text-align: center;
}

.botonIdioma::before {
    content: '';
    position: absolute;
    width: 2.5rem;
    height: calc(90% - 0.2rem);
    background-color: #1e1b26;
    border-radius: 0.2rem;
    left: 0.6rem;
    top: 9%;
    z-index: 1;
    transition: left 0.4s ease-in-out;
}

.botonIdioma.activo::before {
    left: calc(50% - 0.1rem);
}

/** Header*/
.contenedorHeader {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: auto;
    background-color: var(--primaty-color);
}

.logoVideoHeader {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.logoTituloHeader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    z-index: 2;
}

.logoHeader {
    max-width: 13rem;
    width: 50vw;
    height: auto;
    margin-bottom: 1rem;
}

.button-contact {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background-color: #1e1b26;
    border-radius: 0.5rem;
    font-size: clamp(1rem, 4vw, 1.3rem);
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    width: 20rem;
}

.button-contact:hover {
     color: #ff5500;
}

.videoHeader,
.imgQuienesSomos,
.imgenCreaTuIdea {
    display: none;
}


/**Main*/


/**Quienes somos*/

.quienesSomos {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
}

.contenedorHeaderQuienesSomos {
    text-align: center;
}

.pQuienesSomos {
    text-align: justify;
    hyphens: auto;
    word-spacing: 0.05em
}

.iconosQuiensSomos {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
}

.iconosQuiensSomos li {
    list-style: none;
}

.iconoQuienesSomos {
    width: clamp(5rem, 25vw, 12rem);
    height: auto;
}

/**Crea tu idea*/

.contenedorSecciones {
    width: 100%;
    margin: 5rem auto;
    text-align: center;
    position: relative;
}

.contenedorSeccionesNegro {
    width: 100%;
    padding: 5rem 0;
    text-align: center;
    background-color: #1e1b26;
}

.cardProducto {
    display: flex;
    flex-direction: column-reverse;
    margin: 4rem 2rem;
    background-color: white;
    border-radius: .5rem;
    align-items: center;
    padding: 1.5rem;
}

.cardProducto h3 {
    margin: 1rem 0;
}

.cardProducto p {
    text-align: justify;
}

.cardProducto img {
    margin: 1rem;
    height: 7rem;
}


/**Productos y servicios*/

.catalogoProductos {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.catalogoProductos img {
    width: 7rem;
    margin: 0.5rem 0;
}

.cardProductos {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cardProductos:hover p {
    color: var(--primaty-color);
}

.cardProductos:hover img {
    filter: brightness(100%) saturate(100%) invert(27%) sepia(84%) saturate(1473%) hue-rotate(13deg) brightness(102%) contrast(101%);
}

.cardProductos img {
    max-width: 10rem;
    max-height: 10rem;
    width: 7rem;
    height: 7rem;
    object-fit: contain;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
}

.cardProductos p {
    transition: color 0.3s ease;
}


/**Envios*/
.fondoNaranja {
    background-color: #ff5500;
    padding: 1.5rem 0;
    margin: 0;
}

.seccionEnvio {
    text-align: justify;
    padding: 3rem;
    background-color: #1e1b26;

}

.headEnvios {
    text-align: center;
    color: white;
}


.pColorEnvios {
    color: white;
}

.envioCelular2,
.imgEnvios{
    display: none;
}



/** Contacto*/



.ajustePantalla {
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.fondoSecundario {
    background-color: #1e1b26;
}

.cardEnvio {
    position: relative;
    background-color: white;
    border-radius: .5rem;
    margin: 5rem 0 0 0;
    padding: 5rem 0 1.5rem 0;
    color: #1e1b26;
}

.cardEnvio p {
    margin-top: 1rem;
}

.tel-link {
    display: block;
    margin-top: 1rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: color 0.3s ease;

}

.tel-link:hover {
    color: var(--primaty-color);
}

.imagenEnvios {
    position: absolute;
    left: 35%;
    transform: translateX(-50%);
    top: -3rem;
    width: 6rem;
}

.iluminacionCorreo:hover {
    color: var(--primaty-color);
    transition: color 0.3s ease;
}

.botonCorreo {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.botonCorreo:hover {
    color: var(--primaty-color);
}

/**Formulario*/


.formulario {
    background-color: #1e1b26;
    padding: 5rem 0;
}

.contenedorFormulario {
    margin: 0 2rem;
    background-color: white;
    padding: 2rem;
    border-radius: .5rem;
    display: flex;
    flex-direction: column;

}

.contenedorFormulario img {
    max-width: 12rem;
    margin: auto;
}

.inputsDatos input {
    padding: .5rem;
    border-radius: .3rem;
    border: .1rem solid #1e1b26;


}

.inputsDatos label {
    padding: .5rem 0;

}

.InputMensaje {
    height: 10rem;
    padding: .5rem;
}

.divInputs {
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
}

.divInputs label {
    padding: .5rem 0;

}

.divInputs textarea {
    padding: .5rem;
    border-radius: .3rem;
    border: .1rem solid #1e1b26;
}

.botonEnviarFormulario{
    margin-top: 1rem;
    padding: 1rem 2rem;
    background-color: var(--secundary-color);
    border-radius: 0.5rem;
    font-size: clamp(1rem, 4vw, 1.3rem);
    color: white;
    align-self: center;
    border: none;
    cursor: pointer;
}

.botonEnviarFormulario:hover{
    color: var(--primaty-color);
}

/**Footer*/


.contenedorFooter {
    padding: 2rem;
    color: white;
}

.contactoFooter {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.contactoFooter p {
    padding: 0 .5rem;
}

.contacotsFooter {
    padding: 1rem 0;
}

.iconosRedesFooter {
    padding: 1rem 0;
}

.iconosRedesFooter img {
    width: 3rem;
    margin: 0 .2rem;
}


/* --- Responsive (Móvil) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        /* Mostrar botón */
        z-index: 10;
    }

    .nav-links {
        position: fixed;
        left: 0;
        top: -100%;
        /* Oculto arriba */
        flex-direction: column;
        background-color: #1e1b26;
        width: 100%;
        height: auto;
        padding-top: 80px;
        padding-bottom: 2rem;
        transition: 0.3s ease-in-out;
        text-align: center;
    }

    /* Clase que se activará con JS */
    .nav-links.active {
        top: 0;
    }
}


/** --- Responsive Tablet --- */

@media (min-width:835px) and (max-width:1023px) {

    /** Productos y servicios*/
    .catalogoProductos {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    /** Envios */
    .cardEnvios {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}



/** --- Responsive Computadora --- */

@media (min-width:1280px) {

    .videoHeader,
    .imgQuienesSomos,
    .imgenCreaTuIdea {
        display: block;
    }

    .navbar {
        padding: 1rem 2%;
    }

    .logoVideoHeader {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        height: 100%;
        overflow: hidden;
    }

    .logoVideoHeader>div:last-child {
        width: 100%;
        height: 100%;
    }

    .videoHeader {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /**Quienes Somos*/

    .tituloSeccion {
        display: flex;
        align-items: center;
    }

    .lineaNaranja {
        background-color: #ff5500;
        width: 6rem;
        height: .8rem;
        border-radius: 5rem;
        margin-right: 1rem;
    }

    .quienesSomos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        padding: 5rem 7%;
        width: 90%;
        height: 100vh;
        place-items: center;
        margin: auto;
    }

    .contenedorHeaderQuienesSomos {
        text-align: left;
    }

    .pQuienesSomos {
        text-align: left;
    }

    .iconosQuiensSomos {
        justify-content: space-between;
        gap: 2rem;
    }

    .iconosQuiensSomos img{
        width: 10rem;
    }

    .imgQuienesSomos {
        width: 100%;
        height: auto;
    }


    /**Crea tu idea*/

    .seccionCreaTuIdea {
        display: grid;
        grid-template-columns: 45% 55%;
        width: 90%;
        place-items: center;
        margin: auto;
    }

    .cardProducto {
        text-align: left;
        display: flex;
        flex-direction: row;
        padding: 1rem;
    }

    .imgenCreaTuIdea {
        height: 88%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .imgenCreaTuIdea img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 1rem;
    }

    .IconoCreaTuIdea {
        height: 100%;
        width: auto;
        object-fit: cover;
    }

    .cardProducto h3 {
        margin: 0;
    }

    /** Productos y servicios*/


    .catalogoProductos {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        width: 90%;
        margin: auto;
    }

    .formarHeaderProductos {
        display: flex;
        align-items: center;
        width: 80%;
        margin: 1rem auto;

    }

    .cardProductos {
        font-weight: bold;
    }

    .cardProductos img {
        height: 100%;
        width: auto;
        object-fit: contain;
    }

    /**Envios*/

    .envioCelular{
        display: none;
    }

    .envioCelular2,
    .imgEnvios{
    display: block;
    }
    
    .imgEnvios{
        z-index: 1;
        object-fit: cover;
        width: 100%;
        height: auto;
    }
    .imgEnvios img {
        width: 100%;
        height: auto;
        object-fit: cover;
        max-width: 100%;
    }
    .envioCelular2{
        display: block;
        position: absolute;
        top: 50%;
        left: 25%;
        transform: translate(-50%, -50%);
        width: 50%;
        z-index: 2;
        padding: 0 3rem ;
    }

    .envioCelular2{
        width: 35%;
        margin: auto;
    }
    .pColorEnvios{
        text-align: justify;
    }


    /** Contacto */
    .contenedorSecciones2 {
        width: 100%;
        background-color: var(--secundary-color);
        display: flex;
        align-items: stretch;
        gap: 2rem;
        padding: 4rem 10%;
    }

    .contenedorSecciones2 > * {
        flex: 1;
    }

    .ajustePantalla {
        display: flex;
        flex-direction: column;
        height: 100%;
        margin: auto;
    }

    .seccionContacto{
        text-align: left;
    }

    .cardEnvios {
        display: flex;
        flex-grow: 1;
        gap: 5rem;
        /* Espacio entre tarjetas y evita solapamiento de iconos */
        margin-top: 4rem;
        /* Espacio superior para el icono de la primera tarjeta */
    }

    .cardEnvio {
        height: 80%;
        margin: 0;
        flex: 1;
        /* Misma proporción vertical para ambas */
    }


    /**Formulario*/

    .forma_Inputs {
        display: flex;
        gap: 1rem;
    }

    .forma_Inputs>.divInputs {
        flex: 1;
    }

    .inputsDatos input {
        width: 100%;
    }
    .botonEnviarFormulario{
        width: 100%;
    }

    /**Footer*/
    .contenedorFooter {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    footer>p {
        text-align: center;
        padding: 1rem 0;
        background-color: #ff5500;
        color: white;
    }

    .contenedorFooter {
        margin: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .ajustesPantalla {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 80%;
    }

}

/* ===== ESTILOS PARA RESPUESTAS DEL FORMULARIO ===== */
.formResponse {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mensaje de error */
.formResponse-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.formResponse-error ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.formResponse-error li {
    padding: 0.5rem 0;
}

.formResponse-error li:before {
    content: "✗ ";
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Mensaje de éxito */
.formResponse-success {
    background-color: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
    font-weight: 500;
}

.formResponse-success p {
    margin: 0;
}

/* Mensaje de carga */
.formResponse-loading {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}