/* Contacto y Ubicación en una fila */
.fila-contacto-ubicacion {
    display: flex;
    gap: 2em;
    max-width: 1100px;
    margin: 3em auto 2em auto;
    align-items: stretch;
}
.fila-contacto-ubicacion .contacto,
.fila-contacto-ubicacion .ubicacion {
    flex: 1 1 0;
    margin: 0;
    min-width: 0;
}
@media (max-width: 900px) {
    .fila-contacto-ubicacion {
        flex-direction: column;
        gap: 1.5em;
    }
}
/* Unificar ancho de secciones principales */
.quienes-somos, .contacto, .ubicacion {
    width: 100%;
    max-width: 1100px;
    margin: 3em auto 2em auto;
    padding: 2em 0;
    border-radius: 16px;
    box-shadow: 0 4px 24px 0px #fff, 0 8px 32px 0px #0074d9cc;
    background: linear-gradient(135deg, #0a1931 0%, #000 100%);
    color: #fff;
}
.quienes-somos h2, .contacto h2, .ubicacion h2 {
    color: #fff;
}
.mapa-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px #0074d91a;
}
/* Sección Nuestro Trabajo */
/* Fondo y fuentes igual a otras secciones */
.nuestro-trabajo {
    max-width: 1100px;
    margin: 3em auto 2em auto;
    padding: 2em 1em;
    background: linear-gradient(135deg, #0a1931 0%, #000 100%);
    border-radius: 16px;
    box-shadow: 0 4px 24px 0px #fff, 0 8px 32px 0px #0074d9cc;
    text-align: center;
    color: #fff;
}
.nuestro-trabajo h2 {
    margin-bottom: 1.5em;
    color: #fff;
    font-size: 2.2em;
    font-weight: bold;
}
.trabajo-pasos {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
}
.trabajo-paso {
    background: rgba(10,25,49,0.85);
    border-radius: 12px;
    box-shadow: 0 2px 12px #0074d91a;
    padding: 2em 1.5em 1.5em 1.5em;
    max-width: 240px;
    min-width: 180px;
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.15s, box-shadow 0.15s;
    color: #fff;
}
.trabajo-paso:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 6px 24px #0074d933;
}
.trabajo-icono {
    font-size: 2.8em;
    margin-bottom: 0.6em;
}
.trabajo-paso h3 {
    color: #00e5ff;
    font-size: 1.3em;
    margin-bottom: 0.5em;
}
.trabajo-paso p {
    color: #fff;
    font-size: 1em;
    margin: 0;
}
@media (max-width: 800px) {
    .trabajo-pasos {
        flex-direction: column;
        gap: 1.5em;
    }
    .trabajo-paso {
        max-width: 100%;
        min-width: 0;
    }
}
/* Título principal flotante sobre el carrusel */
.carousel-container {
    position: relative;
}
.bienvenida-flotante {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
.bienvenida-flotante .titulo-bienvenida {
    background: rgba(0,0,0,0.45);
    color: #fff;
    padding: 1.2em 2.5em;
    border-radius: 1em;
    font-size: 2.5em;
    font-weight: bold;
    box-shadow: 0 4px 32px #000a;
    pointer-events: auto;
}
@media (max-width: 600px) {
    .bienvenida-flotante .titulo-bienvenida {
        font-size: 1.2em;
        padding: 0.7em 1em;
    }
    .bienvenida-flotante {
        top: 60%;
        transform: translateY(-50%);
    }
}
/* Inputs de texto en admin con fondo azul oscuro */
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form textarea {
    background: #0a1931;
    color: #fff !important;
    border: 1.5px solid #0074d9;
    border-radius: 5px;
    padding: 0.5em;
}
/* Selects en admin con fondo azul oscuro */
.admin-form select {
    background: #0a1931;
    color: #fff !important;
    border: 1.5px solid #0074d9;
    border-radius: 5px;
    padding: 0.5em;
}
#.titulo-bienvenida {
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    text-shadow:
        0 2px 16px #0074d9cc,
        0 4px 24px #000a;
}
.carousel-slide {
    position: relative;
    width: 100vw;
    height: 800px;
    max-height: 90vh;
    overflow: hidden;
}
.carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 1em 2em;
    font-size: 1.2em;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 600px) {
    .carousel-slide {
        height: 200px;
    }
    .carousel-caption {
        font-size: 1em;
        padding: 0.7em 1em;
    }
}
/* Panel de contacto */
/* .contacto: reglas de ancho y padding unificadas arriba */
.contacto {
    text-align: center;
}
.contacto h2 {
    margin-bottom: 1em;
}
.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.contacto-form input[type="text"],
.contacto-form input[type="email"],
.contacto-form textarea {
    width: 100%;
    padding: 0.4em 0.6em;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95em;
    box-sizing: border-box;
}
.contacto-form button[type="submit"] {
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.4em 1em;
    font-size: 0.95em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.contacto-form button[type="submit"]:hover {
    background: #1769aa;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1200;
    width: 60px;
    height: 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    border-radius: 50%;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s;
}
.whatsapp-float:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.28);
}
.whatsapp-float img {
    width: 60px;
    height: 60px;
    display: block;
}
/* Sección Quiénes somos */
/* .quienes-somos: reglas de ancho y padding unificadas arriba */
.quienes-somos {
    text-align: center;
}
.quienes-somos h2 {
    margin-bottom: 0.7em;
}
.quienes-somos p {
    color: #444;
    font-size: 1.1em;
}

/* Mapa de ubicación */
/* .ubicacion: reglas de ancho y padding unificadas arriba */
.ubicacion {
    text-align: center;
}
.ubicacion h2 {
    margin-bottom: 0.7em;
}
.mapa-container {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    margin: 0 auto;
}
.mapa-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer copyright */
.footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 1.2em 0 1em 0;
    font-size: 1em;
    margin-top: 2em;
}
/* Formulario de administración */
.admin-form {
    max-width: 900px;
    margin: 2em auto;
    background: linear-gradient(135deg, #0074d9 0%, #000 100%);
    border-radius: 8px;
    box-shadow: 0 4px 24px 0px #fff, 0 8px 32px 0px #0074d9cc;
    padding: 2em 2em 1.5em 2em;
    color: #fff;
}

/* Forzar fuentes blancas en todo el admin */
.admin-form, .admin-form *, .navbar, .navbar *, .productos-grid, .productos-grid *, .producto-card, .producto-card *, .admin-actions, .admin-actions * {
    color: #fff !important;
}
.admin-form h2, .admin-form h1 {
    text-align: center;
    margin-bottom: 1em;
}
.admin-form label {
    display: block;
    margin-bottom: 1em;
    font-weight: 500;
    color: #333;
}
.admin-form input[type="text"],
.admin-form textarea,
.admin-form input[type="file"] {
    width: 100%;
    padding: 0.6em;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 0.3em;
    font-size: 1em;
    box-sizing: border-box;
}
.admin-form textarea {
    resize: vertical;
    min-height: 80px;
}
.admin-form button[type="submit"] {
    background: linear-gradient(90deg, #00e5ff 0%, #000 100%);
    color: #fff;
    border: none;
    border-radius: 2em;
    padding: 0.7em 2em;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1em;
    box-shadow: 0 2px 16px #00e5ff55;
    transition: box-shadow 0.2s, background 0.2s;
}
.admin-form button[type="submit"]:hover {
    background: linear-gradient(90deg, #000 0%, #00e5ff 100%);
    box-shadow: 0 4px 32px #000a;
}
.admin-form a {
    display: inline-block;
    margin-left: 1em;
    color: #2196f3;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
.admin-form a:hover {
    color: #1769aa;
}
.admin-actions {
    display: flex;
    gap: 0.5em;
    justify-content: center;
    margin: 0.5em 0 1em 0;
}
.btn-editar, .btn-eliminar {
    padding: 0.4em 1em;
    border-radius: 2em;
    text-decoration: none;
    font-size: 0.97em;
    font-weight: bold;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    background: linear-gradient(90deg, #00e5ff 0%, #000 100%);
    color: #fff;
    box-shadow: 0 2px 16px #00e5ff55;
}
.btn-editar {
    background: #2196f3;
    color: #fff;
}
.btn-editar:hover {
    background: linear-gradient(90deg, #000 0%, #00e5ff 100%);
    box-shadow: 0 4px 32px #000a;
}
.btn-eliminar {
    background: #e53935;
    color: #fff;
}
.btn-eliminar:hover {
    background: #a31515;
}
/* Modal de producto */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(2px);
}
.modal-producto {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #0074d9 0%, #000 100%);
    border-radius: 10px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.25);
    padding: 2em 1.5em 1.5em 1.5em;
    z-index: 1100;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}
.modal-producto img {
    max-width: 60vw;
    max-height: 50vh;
    border-radius: 8px;
    object-fit: contain;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2em;
    color: #333;
    cursor: pointer;
    font-weight: bold;
}
body.blurred > *:not(.modal-overlay):not(.modal-producto) {
    filter: blur(5px) grayscale(0.2);
    pointer-events: none;
    user-select: none;
}
/* Catálogo de productos */
.catalogo {
    max-width: 1200px;
    margin: 3em auto;
    padding: 0 1em;
}
.catalogo h2 {
    text-align: center;
    margin-bottom: 1.5em;
}
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2em;
}
.producto-card {
    background: rgba(40, 40, 60, 0.8);
    border-radius: 1.2em;
    box-shadow: 0 4px 24px 0px #fff, 0 8px 32px 0px #0074d9cc;
    border: 1.5px solid #000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}
.producto-card:hover {
    transform: translateY(-5px) scale(1.03);
}
.producto-img {
    width: 100%;
    height: 180px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.producto-info {
    padding: 1em;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.producto-info h3 {
    margin: 0 0 0.5em 0;
    font-size: 1.1em;
}
.producto-info p {
    flex: 1;
    margin: 0 0 1em 0;
    color: #555;
    font-size: 0.97em;
}
.precio {
    color: #219150;
    font-weight: bold;
    font-size: 1.1em;
}
/* Estilos centralizados */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #0a1931 0%, #000 100%);
    color: #f5f5f5;
    min-height: 100vh;
    padding-top: 70px;
}
.navbar {
    background: rgba(30, 30, 60, 0.7);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid #fff;
    color: #fff;
    padding: 1em;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 100;
    box-shadow: 0 4px 24px 0px #fff, 0 8px 32px 0px #0074d9cc;
}
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1em;
    justify-content: center;
}
.navbar a {
    color: #fff;
    text-shadow: 0 2px 8px #fff, 0 4px 16px #0074d9cc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s, text-shadow 0.2s;
}
.navbar a:hover {
    color: #000;
    text-shadow: 0 0 12px #000;
}
header {
    text-align: center;
    margin: 2em 0 1em 0;
}
h1, h2 {
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
    text-shadow:
        0 2px 16px #0074d9cc,
        0 4px 24px #000a;
}

#catalogo h2 {
    /* Hereda el nuevo estilo global de h1, h2 */
}
}
/* Carrusel ocupa todo el ancho */
.carousel {
    width: 100vw;
    margin: 2em 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-img {
    width: 100vw;
    height: 800px;
    max-height: 90vh;
    object-fit: cover;
    /* display: none;  Eliminado para que la visibilidad la controle el slide */
}

.carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 3em 2em 3em 2em;
    font-size: 2.2em;
    text-align: center;
    border-bottom-left-radius: 1.5em;
    border-bottom-right-radius: 1.5em;
    box-shadow: 0 4px 32px #000a;
    z-index: 5;
    min-height: 8em;
    line-height: 1.4;
}
.carousel-btn.next {
    right: 10px;
}
@media (max-width: 600px) {
    .navbar ul {
        flex-direction: column;
        gap: 0.5em;
    }
    .carousel {
        height: 300px;
    }
    .carousel-slide {
        height: 300px;
    }
    .carousel-img {
        height: 300px;
    }
}

/* Protección para evitar descarga directa de imágenes */
img, .producto-img img, .carousel-img, .modal-producto img {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}
