/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    margin: 0 auto;
}

h1, h2, h3 {
    color: #333;
    font-weight: 600;
}

/* Header */
@keyframes colorShift {
    0% { background-color: #ff4500; } /* Naranja - PLA */
    16.66% { background-color: #32cd32; } /* Verde - ABS */
    33.33% { background-color: #1e90ff; } /* Azul - PETG */
    50% { background-color: #ffd700; } /* Amarillo - TPU */
    66.66% { background-color: #800080; } /* Púrpura - Nylon */
    83.33% { background-color: #ff1493; } /* Rosa - PLA */
    100% { background-color: #ff4500; } /* Regresa al naranja */
}

@keyframes moveFilament {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@supports (-webkit-touch-callout: none) {
    .video-player {
        max-width: calc(100vw - 20px); /* Resta espacio para evitar desbordamiento */
    }
}


.modern-header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    animation: colorShift 12s infinite;
    transition: background-color 0.3s ease;
    overflow: hidden;
    position: relative;
    width: 100%;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.header-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    color: #e4e7ec;
    font-weight: bold;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.filament-roll {
    position: absolute;
    right: 0;
    bottom: -20px;
    width: 120px;
    animation: moveFilament 10s linear infinite;
}

.logo {
    font-size: 2em;
    font-weight: 600;
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

.logo-img {
    height: 85px;
    width: auto;
    vertical-align: middle;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f57c00;
}

/* Hero Section */
.hero {
    background-image: url('images/foto3.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    background-color: #f06833;
    padding: 50px 20px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);

}



.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero .btn-primary {
    padding: 10px 20px;
    background-color: #f57c00;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.hero .btn-primary:hover {
    background-color: #e65100;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 5px rgba(252, 248, 248, 0.5);
    

}

/* Services Section */
.services-section {
    background-color: white;
    padding: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #9fc0ec;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-card1 {
    background-color: #f3b6b6;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-card2 {
    background-color: #c0ecc0;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-card:hover {
    background-color: #ecf5c6;
}

.service-card1:hover {
    background-color: #e7b2f5;
}

.service-card2:hover {
    background-color: #ecdc94;
}

/* Contact Section */
.contact-section {
    background-color: #f0f0f0;
    padding: 60px 0;
}

.contact-info {
    list-style: none;
    padding: 0;
    font-size: 1.2em;
}

.contact-info li {
    margin-bottom: 15px;
}

.contact-info a {
    color: #2575fc;
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
.modern-footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Estilos generales del carrusel */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Estilo del botón de WhatsApp */
.whatsapp-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #25d366;
    color: white;
    padding: 15px 20px;
    border-radius: 50%;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.whatsapp-icon {
    width: 50px;
    height: 50px;
}

.whatsapp-button:hover {
    background-color: #128c7e;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        height: 300px;
    }
    .photo-item {
        max-width: 100%; /* Ocupa todo el ancho en móviles */
    }
    .video-player {
        width: 90%;            /* Ancho ligeramente menor en móviles */
        max-width: none;       /* Sin límite de ancho en pantallas pequeñas */
        aspect-ratio: 16 / 9;  /* Mantiene proporción adecuada */
    }

    .video-section {
        padding: 10px;         /* Reduce el padding de la sección */
    }

    .section-title {
        font-size: 1.2rem;     /* Ajusta el tamaño del título */
    }

    .section-description {
        font-size: 0.9rem;     /* Ajusta el tamaño del texto */
    }
    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn-primary {
        padding: 8px 16px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr; /* Dos columnas en lugar de tres */
    }

    .service-card, .service-card1, .service-card2 {
        padding: 20px;
    }

    .header-title {
        font-size: 2rem;
    }

    .logo {
        font-size: 3em; /* Más grande si es texto */
        margin-right: 30px;
    }
    
    .logo-img {
        height: 120px; /* Tamaño más grande */
        width: auto;
        vertical-align: middle; /* Alineación correcta */
    }
    

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .whatsapp-button {
        padding: 10px;
    }

    .header-title {
        top: 10%; /* Ajusta este valor según lo alto que quieras el título */
        font-size: 1.8rem; /* Tamaño del texto adecuado para móviles */
    }

   

}

@media (max-width: 480px) {
    .hero {
        height: 250px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero .btn-primary {
        padding: 6px 12px;
    }

    .service-card, .service-card1, .service-card2 {
        padding: 15px;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .header-title {
        top: 25%; /* Más alto en pantallas más pequeñas */
        font-size: 1.5rem; /* Tamaño más pequeño para móviles pequeños */
    }

}




/* Estilo de la sección 'foto' */

.gallery-section {
    background-color: #f9f9f9; /* Fondo claro */
    padding: 50px 20px;       /* Espaciado interno */
    text-align: center;       /* Centrar contenido */
}

.section-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.section-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

/* Estilo del grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsivo */
    gap: 15px; /* Espacio entre las imágenes */
    justify-items: center;
}

/* Estilo de las imágenes */
.photo-item {
    width: 100%;               /* Ocupa el espacio del grid */
    max-width: 300px;          /* Limita el tamaño máximo */
    height: auto;              /* Mantiene la proporción */
    border-radius: 10px;       /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Efecto suave */
}

.photo-item:hover {
    transform: scale(1.05);    /* Efecto de zoom */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Mayor sombra */
}


.video-section {
    background-color: #f4f4f4; /* Color de fondo */
    padding: 50px 20px;       /* Espaciado interno */
    text-align: center;       /* Centra el contenido */
}

.section-title {
    font-size: 2rem;          /* Tamaño del título */
    color: #333;              /* Color del texto */
    margin-bottom: 10px;      /* Espaciado inferior */
}

.section-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.video-player {
    width: 80%;                /* Ajusta el ancho al 80% del contenedor */
    max-width: 800px;          /* Ancho máximo para pantallas grandes */
    height: auto;              /* Mantiene la proporción del video */
    aspect-ratio: 16 / 9;      /* Relación de aspecto estándar */
    border-radius: 10px;       /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra */
    margin: 20px auto;         /* Centra el video y da algo de espacio superior/inferior */
    display: block;            /* Asegura que el video se comporte como bloque */
}

.makerworld-section {
    text-align: center;
    padding: 20px;
    background-color: #aee9c8; /* Verde claro suave */
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    margin: 20px auto; 
    width: 100%;
    max-width: 800px;
}

.makerworld-section .section-title {
    color: #2d6a4f; /* Verde oscuro para el título */
}

.makerworld-section .section-description {
    color: #4d4d4d; /* Gris para el texto */
    font-size: 1rem;
    margin-top: 10px;
    margin-bottom: 20px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn-primary, .btn-secondary {
    text-decoration: none;
    color: white; /* Asegurarnos que el color del texto es blanco */
    padding: 12px 24px; /* Ajuste de padding para mayor visibilidad */
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    display: inline-block; /* Asegurar que se muestre como un bloque */
    width: auto; /* Dejar que el ancho se ajuste al contenido */
}

/* Estilo para el botón de MakerWorld */
.btn-primary {
    background-color: #0073e6;
}

.btn-primary:hover {
    background-color: #005bb5;
}

/* Estilo para el botón de Printables */
.btn-secondary {
    background-color: #f97316;
}

.btn-secondary:hover {
    background-color: #ea580c;
}

/* Estilos para pantallas más pequeñas */
@media screen and (max-width: 768px) {
    .makerworld-section {
        padding: 15px; /* Reducir padding en pantallas pequeñas */
        margin: 10px auto; /* Reducir márgenes */
    }

    .makerworld-section .section-description {
        font-size: 0.9rem; /* Ajustar el tamaño de la fuente */
    }

    .button-group {
        flex-direction: column; /* Colocar los botones en columna */
        gap: 10px; /* Reducir el espacio entre los botones */
    }

    .btn-primary, .btn-secondary {
        padding: 10px 20px; /* Ajustar el tamaño de los botones */
        font-size: 0.9rem; /* Reducir el tamaño del texto */
    }
}

