/* =================================================================
   NUEVO ARCHIVO: style.css
   (CSS unificado basado en el diseño de blanco.php + detalles optimizados)
   ================================================================= */

/* --- Estilos Generales y Tipografía --- */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Header y Navegación --- */
header {
    background: linear-gradient(135deg, #79a8af, #5f8a8f); /* Gradiente sutil */
    color: white;
    padding: 10px 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
    transition: text-decoration 0.3s;
}

header nav a:hover {
    background-color: #5a6ba5;
    
}

/* --- Estilos de Secciones --- */
.section {
    padding: 60px 20px;
    text-align: center;
}

.section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #343F51;
}

.section p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Banner Principal (Carrusel) --- */
.main-banner, .carousel {
    width: 100%;
    margin-top: 0;
    display: flex;
    overflow: hidden;
}

.carousel img, .main-banner img {
    width: 100%;
    border-radius: 8px;
    flex-shrink: 0;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    font-size: 20px;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* --- Grid de Productos/Categorías --- */
.productos-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.producto-item {
    width: 30%;
    border: 2px solid #004D40;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.producto-item img {
    width: 100%;
    height: auto;
}

.producto-item:hover {
    transform: scale(1.05);
}

/* --- Secciones de Servicios y Proceso --- */
#servicios {
    background-color: #ffffff;
}

.servicios-grid, .proceso-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.servicio-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 280px;
    border: 1px solid #e9ecef;
}

.servicio-icon {
    height: 50px;
    margin-bottom: 15px;
}

.paso {
    text-align: center;
    max-width: 220px;
}

.paso-numero {
    width: 50px;
    height: 50px;
    background-color: #79a8af;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 15px auto;
}

/* --- Formulario de Contacto --- */
.contact-form {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-container {
    display: flex;
    width: 100%;
    min-height: 450px;
}

.contact-form-left {
    background-color: #79a8af;
    color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.contact-form-left h3 {
    font-size: 24px;
    margin: 0;
}

.contact-form-left:hover {
    background-color: #5a6ba5;
}

.contact-form-right {
    background-color: white;
    flex: 1.5;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    width: 100%;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    border-color: #5a6ba5;
    outline: none;
}

button[type="submit"] {
    background-color: #79a8af;
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background-color: #5a6ba5;
}

.error-message {
    color: #d9534f;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 20px;
}

/* --- Sección de Contacto Final y Dirección --- */
#contacto .contacto-info {
    text-align: center;
    font-size: 18px;
    margin-top: 30px;
}

#contacto .contacto-info a {
    color: #fff;
    background-color: #25D366;
    padding: 12px 25px;
    font-size: 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 10px;
    transition: background-color 0.3s ease;
}

#contacto .contacto-info a:hover {
    background-color: #128C7E;
}

#contacto .direccion {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
}

/* --- Botón Flotante de WhatsApp --- */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    z-index: 1001;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* --- Botón Solicitar Cotización --- */
.solicitar-cotizacion-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #79a8af;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.solicitar-cotizacion-btn:hover {
    background-color: #5f8a8f;
}

.solicitar-cotizacion-btn img {
    width: 20px;
    margin-right: 10px;
}

/* --- Agregados de producto.php --- */
 .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        h1 {
            text-align: center;
            color: #343F51;
        }
        .producto-detalle {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .imagen-container {
            flex: 1;
            max-width: 50%;
            position: relative;
            overflow: hidden;
            border-radius: 8px;
        }
        .carouselp {
            display: flex;
            width: 100%;
            transition: transform 0.5s ease-in-out;
        }
        .carouselp img {
            width: 100%;
            border-radius: 8px;
            flex-shrink: 0;
        }
        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            padding: 15px;
            cursor: pointer;
            border-radius: 50%;
            z-index: 10;
            font-size: 20px;
        }
        .carousel-btn.prevp {
            left: 10px;
        }
        .carousel-btn.nextp {
            right: 10px;
        }
        .detalles-container {
            flex: 1;
            max-width: 50%;
        }
        .detalles-container h2 {
            font-size: 24px;
            color: #343F51;
            margin: 0 0 10px;
        }
        .detalles-container p {
            font-size: 16px;
            color: #666;
            line-height: 1.6;
        }
        .detalles-container .precio {
            font-size: 22px;
            color: #25D366;
            font-weight: bold;
        }
        .detalles-container .stock {
            font-size: 18px;
            color: #333;
        }
        .detalles-container .fechas {
            font-size: 14px;
            color: #888;
            margin-top: 10px;
        }
        .info-detallada {
            margin-top: 20px;
            text-align: center;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            padding: 0 20px;
        }
        .info-detallada h3 {
            font-size: 24px;
            color: #343F51;
            margin-bottom: 20px;
        }
        .info-detallada p {
            font-size: 16px;
            color: #333;
            line-height: 1.6;
            text-align: left;
        }
        .sugerencias {
            margin-top: 50px;
        }
        .sugerencias h2 {
            text-align: center;
            color: #343F51;
        }
        .sugerencias-carousel {
            display: flex;
            overflow-x: auto;
            gap: 20px;
            padding: 20px;
            scroll-behavior: smooth;
        }
        .sugerencia-item {
            flex: 0 0 auto;
            width: 200px;
            text-align: center;
            transition: transform 0.3s ease;
        }
        .sugerencia-item:hover {
            transform: scale(1.05);
        }
        .sugerencia-item a {
            text-decoration: none;
            color: #333;
        }
        .sugerencia-item img {
            width: 100%;
            border-radius: 8px;
        }
        .sugerencia-item p {
            font-size: 16px;
            margin-top: 10px;
        }
        
/* --- Media Queries para Responsividad --- */
@media (max-width: 768px) {
    .productos-grid {
        flex-direction: column;
        align-items: center;
    }

    .form-container {
        flex-direction: column;
    }

    .contact-form-left, .contact-form-right {
        border-radius: 0;
    }

    .contact-form-left {
        border-radius: 8px 8px 0 0;
    }

    .contact-form-right {
        border-radius: 0 0 8px 8px;
    }

    .servicios-grid, .proceso-grid {
        flex-direction: column;
        align-items: center;
    }
}