/* Estilos Base */
body {
    font-family: 'Roboto', sans-serif;
    color: #385C62;
    margin: 0;
    background: url('images/fondo.jpeg') no-repeat center center fixed;
    background-size: cover;
    line-height: 1.6;
}

.cookie-notice {
    position: fixed;
    bottom:30px; /* Mantiene el aviso en el 80% de la altura */
    left: 50%; /* Posiciona el aviso al 50% del ancho de la pantalla */
    transform: translateX(-50%); /* Centra el aviso horizontalmente */
    width: calc(30% + 150px); /* Ajusta el valor según el ancho del borde */
    height: auto;
    background-color: rgb(255, 255, 255); /* Color de fondo en formato RGB como respaldo */
    background-color: rgba(255, 255, 255, 1); /* Color de fondo en formato RGBA */
    border: 1px solid #ccc;
    border-radius: 8px 8px 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999; /* Asegura que esté por encima de otros elementos */
    padding: 10px;
}


.cookie-notice button {
    width: 155px;
    height: 25px;
    border: none;
    cursor: pointer;
    margin: 10px 0;
    border-radius: 8px 8px 8px 8px;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.cookie-accept {
    background-color: #4CAF50;
    color: black;
}

.cookie-decline {
    background-color: #a9a9a9;
    color: black;
}

.cookie-text {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    margin: 5px 0;
}

.cookie-text a {
    color: #000;
    text-decoration: none;
}




/* Encabezado */
header {
    background: rgba(244, 244, 244, 0.9);
    color: #000;
    font-family: 'Lato', sans-serif;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-info {
    color: #000;
    padding: 0px;
    font-size: 0.9em;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info p, .contact-info img {
    margin: 0 10px;
    display: inline-block;
}

.contact-info img.icon {
    width: 23px;
    height: 23px;
    vertical-align: middle;
}

.contact-info img.icon-phone {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.contact-info img.icon-whatsapp {
    width: 22px;
    height: 22px;
    vertical-align: middle;
}

.contact-info img.icon-right {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 5px;
}

.contact-info a {
    text-decoration: none;
    color: inherit;
    vertical-align: middle;
}

.underline {
    text-decoration: underline;
    vertical-align: middle;
}

.middle {
    vertical-align: below;
}

.icon {
    font-size: 20px;
    vertical-align: middle;
    margin-bottom: 15px;
}
.icon-container:hover .icon-scale {
        transform: rotate(90deg); /* Girar el ícono 90 grados hacia la derecha */
    }


.logo-container {
    margin: 20px auto;
    padding: 20px;
    max-width: 800px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    height: 111px; /* Elimina el valor fijo de altura */
    background: #fff url('images/fondobox.png') no-repeat center center;
}

.logo-container img {
    width: 260px;
    height: auto;
    margin-top: 0; /* Asegúrate de que no haya margen adicional */
}

.logo-container h1 {
    margin-top: 0px; /* Reduce el margen superior */
    font-size: 2em;
    font-weight: normal;
    line-height: 0.5; /* Asegura que no haya espacio adicional en el texto */
}




/* Secciones generales */
section {
    background: #fff url('images/fondobox.png') no-repeat center center;
    background-size: cover;
    margin: 20px auto;
    padding: 20px;
    max-width: 800px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Tipografía */
h1 {
    font-size: 1.6em;
    display: flex;
    align-items: center;
    margin: 10px 0;
    color: #385C62;
}

h1 .material-icons {
    margin-right: 10px;
}


/* Cambia el tamaño de los títulos de h1 a h2 */
h2 {
    font-size: 1.5em; /* Mantén el tamaño original que tenía h1 */
    display: flex;
    align-items: center;
    margin: 0px 0;
    margin-left: 10px;
}

h2 .material-icons {
    margin-right: 10px;
}

h2 a {
    text-decoration: underline;              /* Aplica el subrayado */
    text-decoration-color: #C13F40;          /* Color del subrayado */
    text-decoration-thickness: 2px;        /* Grosor del subrayado */
    text-underline-offset: 3px;              /* Desplaza la línea hacia abajo */
    color: #C13F40;          
    font-weight: bold;
}


/* Opcional: Añadir un color diferente en el hover */
h2 a:hover {
    color: #a9a9a9; /* Cambia a negro cuando se pasa el cursor */
    transition: transform 0.1s ease;
    transform: scale(1.012); /* Aumenta el tamaño del ícono en un 20% */
}

/* Opcional: mayor separación entre los h3 y el h2 */
h2 + h3 {
    margin-top: 5px; /* Ajusta el espacio entre el h2 y el primer h3 */
}

h3 {
    font-size: 1.1em;
    margin: 0px 0;
    margin-left: 20px; /* Aplica una sangría para dar la apariencia de estar "dentro" del h2 */
    font-weight: normal; /* Opcional: puedes hacer que el h3 sea más ligero que el h2 */
    color: #385C62; /* Opcional: usar un color más claro para los h3 */
    margin-top: 20px;
}
/* Eliminar subrayado y cambiar el color a gris */
h3 a {
    text-decoration: none; /* Elimina el subrayado */
    color: #385C62; /* Cambia el color a gris */
    font-weight: bold;
}

h3 + p {
    padding-left: 40px;
}



h3 a:hover {
    color: #a9a9a9; /* Cambia a negro cuando se pasa el cursor */
    transition: transform 0.1s ease;
    transform: scale(1.012); /* Aumenta el tamaño del ícono en un 20% */
}


/* Otros estilos como los del body, headers, y secciones permanecen igual */




p {
    font-size: 1em;
    color: #2C2C2C;
    margin-top: 0px;
    margin-left: 10px;
    
.tab {
    text-indent: 40px;
}

}

/* Listas */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    color: #2C2C2C;
}

ul li .material-icons {
    margin-right: 10px;
}

ul li:last-child {
    border-bottom: none;
}

li a {
    text-decoration: none; /* Elimina el subrayado */
    color: inherit; /* Mantiene el color del texto padre */
}

/* Opcional: Si quieres que el color cambie al pasar el cursor */
li a:hover {
    color: #a9a9a9; /* Cambia a un color personalizado cuando se hace hover */
}


.icon-color-custom_grey {
    color: #385C62; /* Color personalizado */
}

.icon-color-custom_red {
    color: #C13F40; /* Color personalizado */
}

.custom-icon {
    display: inline-block;
    vertical-align: middle;
}

.icon-image {
    width: 24px; /* Ajusta el tamaño según tus necesidades */
    height: 24px; /* Ajusta el tamaño según tus necesidades */
    filter: invert(29%) sepia(84%) saturate(7483%) hue-rotate(353deg) brightness(92%) contrast(105%); /* Ajusta el color del icono */
}

.material-icons.icon-inline {
    vertical-align: middle;
}


/* Botón en la sección #about */
#about {
    position: relative;
    padding-bottom: 60px; /* Espacio para el botón */
}

#contact-button {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: #C13F40;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

#contact-button:hover {
    background-color: #a9a9a9; /* Color al hacer hover */
}


/* Botón en la sección #trabajos */
#trabajos {
    position: relative;
    padding-bottom: 60px; /* Espacio para el botón */
}


#contactt-button {
    position: absolute;
    bottom: 15px; /* Alinea el botón en la parte inferior */
    right: 10px;
    transform: translateX(-6px);
    padding: 10px 20px;
    background-color: #385C62;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

#contactt-button:hover {
    background-color: #a9a9a9; /* Color al hacer hover */
}

#contactr-button {
    position: relative; /* Cambiar de absolute a relative para mantenerse dentro del bloque padre */
    margin-top: 20px; /* Añadir margen para crear espacio entre el contenido superior */
    padding: 10px 20px;
    background-color: #385C62;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    left: 50%;
    transform: translateX(-50%);
}


#contactr-button:hover {
    background-color: #a9a9a9; /* Color al hacer hover */
}
#clientes {
    position: relative; /* Asegura que el botón se posicione dentro del contenedor */
    padding-bottom: 50px; /* Crea espacio suficiente en la parte inferior para el botón */
}



/* Carrusel de Imágenes */
.carousel-container {
    background: #fff;
    margin: 20px auto;
    padding: 15px;
    max-width: 800px;
    height: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.carousel {
    display: flex;
    width: calc(100% + 10px);
    margin-left: -5px;
    animation: slide 20s linear infinite alternate;
    animation-fill-mode: forwards;
}

.carousel a {
    display: block;
    height: 100%;
}

.carousel img {
    height: 100%;
    max-height: 230px;
    object-fit: cover;
    margin: 0 10px;
    transition: transform 0.5s ease;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Formulario de contacto */
.form-container {
    max-width: 800px;
    margin: 20px auto;
    background: #DCDCDC;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px; /* Ajuste para el padding de las columnas */
}

.form-column {
    flex: 1 1 100%;
    padding: 10px;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    height: 100px;
    resize: vertical;
}

input[type="submit"] {
    background-color: #C13F40;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #a9a9a9;
}

#fileList {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* Estilos para vista de escritorio */
@media (min-width: 768px) {
    .form-column {
        flex: 1 1 50%; /* Dos columnas iguales */
        padding: 10px;
    }
}

/* Estilos para vista móvil */
@media (max-width: 767px) {
    .form-column {
        flex: 1 1 100%; /* Una columna en móvil */
        padding: 10px 0; /* Padding para una columna */
        height: 230px;
    }
}

/* Estilos para el indicador de progreso */
.progress-container {
    display: none;
    align-items: center;
    margin-left: 10px;
}

.progress-bar {
    width: 100px;
    height: 10px;
    background-color: #ccc;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 10px;
}

.progress-bar-inner {
    height: 100%;
    background-color: #007bff;
    width: 0;
    transition: width 0.3s;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Estilos para el catálogo */
.catalogo {
    display: flex;
    flex-wrap: wrap;
    /* Elimina el uso de 'gap' ya que no podemos controlarlo sin 'box-sizing: border-box;' */
    margin: 0 auto;
    max-width: 1200px; /* Ajusta según tus necesidades */
    padding: 0;
}

.bloquebotonproducto {
    width: calc((100% - 40px) / 3); /* Calcula el ancho teniendo en cuenta los márgenes */
    margin-right: 20px;
    margin-bottom: 20px;
    height: 300px;
}

.bloquebotonproducto:nth-child(3n) {
    margin-right: 0; /* Elimina el margen derecho en cada tercer elemento */
}


/* Estilos para el producto dentro del bloque */
.producto {
    border: 1px solid #ccc;
    padding: 15px;
    text-align: center;
    background-color: #f9f9f9;
    height: 100%; /* Para que el div .producto ocupe toda la altura del bloque */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.producto img {
    width: 100%;
    height: auto;
    max-height: 150px; /* Ajusta este valor según tus necesidades */
    object-fit: cover;
    margin-bottom: 10px;
}

.producto h2 {
    font-size: 18px;
    margin: 10px 0;
}

.producto p {
    font-size: 14px;
    color: #555;
}

.producto .paypal-button-container {
    margin-top: 15px;
}



/* Carrusel de Logotipos */
.logo-carousel-container {
    background: rgba(255, 255, 255, 0.8);
    margin: 10px auto;
    padding: 10px;
    max-width: 800px;
    height: 120px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.logo-carousel {
    display: flex;
    width: calc(100% * 2);
    animation: slide-logos 20s linear infinite alternate;
    animation-delay: 2s;
    animation-fill-mode: forwards;
}

.logo-carousel div {
    flex: 0 0 auto;
    width: 150px;
    margin: 0 10px;
}

.logo-carousel img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes slide-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Botones de Contacto */
.contact-buttons a {
    display: flex;
    align-items: center;
    justify-content: left;
    background: none;
    color: #385C62;
    text-decoration: none;
    width: auto;
    height: 40px;
    margin: 5px 0;
}

.contact-buttons img, .contact-buttons .icon-inline {
    width: 22px;
    height: 22px;
    margin-right: 7px;
    margin-bottom: 15px;
}

/* Botones Flotantes */
.whatsapp-button,
.phone-button {
    position: fixed;
    bottom: 20px;
    color: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 16px;
    z-index: 1000;
    text-decoration: none;
    width: 30px;
    height: 30px;
    justify-content: center;
}

.whatsapp-button {
    background: #25d366;
    left: 33px;
    bottom: 20px;
}

.phone-button {
    background: #000000;
    right: 33px;
    bottom: 20px;
    width: 30px;
    height: 30px;
}

.whatsapp-button img,
.phone-button img {
    width: 35px;
    height: 35px;
}

/* Footer */
footer {
    text-align: center;
    padding: 13px 0;
    background: #1e1e1e;
    color: white;
    font-size: 0.9em;
}

.legal-link {
    color: #333333; /* Gris oscuro */
}

/* Media Queries para móviles */
@media (max-width: 600px) {
    .contact-info {
        flex-direction: column;
        text-align: center;
    }

    .contact-info p {
        margin: 5px 0;
    }

    header {
        padding: 20px 0;
    }

    .carousel-container {
        height: 130px;
    }

    .carousel img {
        max-height: 111px;
    }

    .whatsapp-button,
    .phone-button {
        width: 40px;
        height: 40px;
        border-radius: 25px;
    }

    .whatsapp-button img,
    .phone-button img {
        width: 36px;
        height: 36px;
    }

    .contact-info a,
    .contact-info div {
        display: flex;
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
}

/* Animación de íconos */
.icon:hover {
    transition: transform 0.15s ease;
    transform: rotate(360deg); /* Gira el ícono 360 grados */
    
}

.icon-bounce:hover {
    animation: bounce 0.5s ease forwards; /* Duración de la animación y aplica hacia adelante */
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0); /* Posición inicial y final */
    }
    25% {
        transform: translateY(-6px); /* Punto más alto del rebote */
    }
    50% {
        transform: translateY(0px); /* Punto más alto del rebote */
    }
    75% {
        transform: translateY(-6px); /* Punto más alto del rebote */
    }
}

.icon-scale:hover {
    transition: transform 0.1s ease;
    transform: scale(1.2); /* Aumenta el tamaño del ícono en un 20% */
    color: #a9a9a9;
}


.icon-skew:hover {
    transition: transform 0.1s ease;
    transform: skew(10deg, 10deg); /* Inclina el ícono en ambos ejes */
}

.icon-fade:hover {
    transition: opacity 0.3s ease;
    opacity: 0.5; /* Hace que el ícono se desvanezca */
}

.icon-spin {
    display: inline-block;
    transform-origin: center -4px;
}

.icon-spin
{
transition: transform 0.15s ease;
transform: rotateY(180deg); /* Gira el ícono 180 grados en el eje Y */
}

/* Animaciones encadenadas */
.icon-bounce-spin:hover {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-10px) rotate(180deg); /* Rebotar y girar el ícono */
    opacity: 0.7; /* Cambiar la opacidad */
}

.icon-scale-fade:hover {
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform: scale(1.3); /* Aumentar el tamaño del ícono */
    opacity: 1; /* Cambiar la opacidad */
}


.row-1 #dimensions {
    font-size: 1.2em;
    flex: 0 0 auto;
    margin-left: 10px;
    color: #333; /* Color del texto */
}


.volume-calculator {
    max-width: 550px;
    margin: 20px auto;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
/* Estilos de los Círculos */
.circle {
    width: 100px;
    height: 50px;
    border-radius: 50%;
    opacity: 0.4; /* Cambiado de 0.7 a 0.4 para 40% de opacidad */
    position: relative;
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Filas */
.row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

/* Fila 1: Explorador de Archivos, Botón Enviar y Volumen Calculado */
.row-1 input[type="file"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1 1 auto;
    min-width: 150px;
}

.row-1 button {
    padding: 8px 16px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background-color 0.3s;
}

.row-1 button:hover {
    background-color: #385C62;
}

.row-1 #volume {
    font-size: 1.2em;
    flex: 0 0 auto;
    margin-left: 10px;
}

/* Fila 2: Semáforo de Circulos */
.row-2 .semaforo {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.semaforo .circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    opacity: 0.70;
    position: relative;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.semaforo .circle .number {
    position: absolute;
    bottom: -20px;
    width: 80px;
    text-align: center;
    font-size: 0.8em;
    color: #333333;
    max-width: 50px;

}

/* Resultado del Volumen */
.volume-calculator p {
    text-align: center;
    font-size: 1.2em;
    margin-top: 10px;
}


#viewerSection {
    position: relative;
    width: 100%;
    height: 100vh; /* Ajusta para ocupar toda la altura */
    overflow: hidden;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Mantener el canvas en el fondo */
}



/* Tamaños de íconos */
.icon-small {
    width: 16px;
    height: 16px;
}

.icon-medium {
    width: 32px;
    height: 32px;
}

.icon-large {
    width: 48px;
    height: 48px;
}

/* Gradiente de Fondo */
.gradient-background {
    background: linear-gradient(to right, #ff7e5f, #feb47b); /* Gradiente de naranja a rosa */
}

/* Movimiento de Botones */
.button:hover {
    transition: transform 0.3s ease;
    transform: translateY(-2px); /* Mueve el botón ligeramente hacia arriba */
}

.button-rotate:hover {
    transition: transform 0.3s ease;
    transform: rotate(10deg); /* Gira el botón 10 grados */
}

.button-scale:hover {
    transition: transform 0.3s ease;
    transform: scale(1.1); /* Aumenta el tamaño del botón en un 10% */
}

.button-fade:hover {
    transition: opacity 0.3s ease;
    opacity: 0.7; /* Hace que el botón se desvanezca ligeramente */
}

/* Animaciones encadenadas */
.button-bounce-scale:hover {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-10px) scale(1.1); /* Rebotar y aumentar el tamaño del botón */
    opacity: 0.7; /* Cambiar la opacidad */
}

.button-rotate-fade:hover {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: rotate(10deg); /* Girar el botón */
    opacity: 0.5; /* Cambiar la opacidad */
}
