* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f4f8 0%, #f7fbfc 100%);
    color: #1f383f;
    line-height: 1.6;
}

/* HEADER Y NAVEGACIÓN */
header {
    background: #fff;
    color: #fff;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Franja celeste superior donde va el logo */
.logo {
    background: linear-gradient(135deg, #26c6da 0%, #81d4fa 100%);
    padding: 6px 30px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Enlace del logo */
.logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

/* Imagen del logo: tamaño parecido al diseño anterior */
.logo-img {
    height: 70px;
    width: auto;
    max-width: 360px;
    object-fit: contain;
    display: block;
}

/* Botones de autenticación si algún archivo todavía usa .auth-buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-buttons .btn-registro {
    background: #ffffff;
    color: #08282f;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #26c6da;
    cursor: pointer;
}

.auth-buttons .btn-registro:hover {
    background: #dffaff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.auth-buttons .btn-login {
    background: linear-gradient(135deg, #26c6da 0%, #6dd7eb 100%);
    color: #08282f;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.auth-buttons .btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(38, 198, 218, 0.35);
}

/* Barra de navegación */
nav,
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 45px;
    min-height: 95px;
    flex-wrap: wrap;
    gap: 25px;
    background: linear-gradient(135deg, #03404f 0%, #0d5c70 100%);
}

/* Links del lado izquierdo */
nav > div:first-child,
.nav-links {
    display: flex;
    gap: 18px;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
}

/* Enlaces del menú */
nav a,
.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 700;
}

nav a:hover,
.nav-links a:hover {
    background: rgba(38, 198, 218, 0.18);
    color: #26c6da;
    transform: translateY(-2px);
}

/* Área derecha: registrarme, login, usuario y cerrar sesión */
.nav-auth {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

/* Nombre del usuario */
.usuario-header {
    color: #26c6da;
    font-weight: 700;
    white-space: nowrap;
}

/* Botón login */
nav .btn-login,
.btn-login {
    background: linear-gradient(135deg, #26c6da 0%, #6dd7eb 100%);
    color: #08282f !important;
    padding: 12px 24px !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(38, 198, 218, 0.25);
}

nav .btn-login:hover,
.btn-login:hover {
    background: #00acc1;
    color: #ffffff !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(38, 198, 218, 0.35);
}

/* Botón registrarme */
nav .btn-registro,
.btn-registro {
    background: #ffffff;
    color: #0d5c70 !important;
    padding: 12px 24px !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    border: 2px solid #26c6da;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(38, 198, 218, 0.20);
}

nav .btn-registro:hover,
.btn-registro:hover {
    background: #dffaff !important;
    color: #08282f !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(38, 198, 218, 0.30);
}

/* Botón cerrar sesión */
.btn-logout {
    background: #e74c3c;
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s ease;
    border: 2px solid #e74c3c;
    cursor: pointer;
}

.btn-logout:hover {
    background: #c0392b;
    border-color: #c0392b;
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2d2d2d;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1;
    border-radius: 5px;
    top: 100%;
    right: 0;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 0;
}

.dropdown-content a:first-child {
    border-radius: 5px 5px 0 0;
}

.dropdown-content a:last-child {
    border-radius: 0 0 5px 5px;
}

.dropdown-content a:hover {
    background-color: #26c6da;
    color: #1a1a1a;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown > a::after {
    content: ' ▼';
    font-size: 12px;
}

hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #26c6da, transparent);
}

/* SECCIONES PRINCIPALES */
section {
    margin: 40px 0;
}

.hero {
    background: linear-gradient(135deg, #043a49 0%, #0b5c74 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%2326c6da" opacity="0.1"/><circle cx="80" cy="80" r="2" fill="%2326c6da" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #6fe4f0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 20px;
    margin-bottom: 15px;
    color: #f0f0f0;
}

/* CONTENEDOR */
.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TARJETAS Y SECCIONES */
.seccion {
    background: white;
    padding: 40px 20px;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.seccion h2 {
    color: #26c6da;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid #26c6da;
    padding-bottom: 15px;
}

.seccion h3 {
    color: #1a1a1a;
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.tarjeta-producto {
    background: linear-gradient(135deg, #fff 0%, #f3f8fb 100%);
    border: 2px solid #26c6da;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tarjeta-producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(38, 198, 218, 0.25);
}

.tarjeta-producto h4 {
    color: #26c6da;
    font-size: 20px;
    margin-bottom: 10px;
}

.tarjeta-producto p {
    color: #666;
    margin-bottom: 10px;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.tarjeta-servicio {
    background: linear-gradient(135deg, #fff 0%, #f3f8fb 100%);
    border-left: 5px solid #26c6da;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tarjeta-servicio:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(38, 198, 218, 0.18);
}

.tarjeta-servicio h4 {
    color: #26c6da;
    font-size: 18px;
    margin-bottom: 10px;
}

/* FORMULARIOS */
.formulario {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.formulario h3 {
    color: #1a1a1a;
    margin-bottom: 20px;
    border-bottom: 2px solid #26c6da;
    padding-bottom: 10px;
}

.formulario input,
.formulario textarea,
.formulario select {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.formulario input:focus,
.formulario textarea:focus,
.formulario select:focus {
    outline: none;
    border-color: #26c6da;
    box-shadow: 0 0 8px rgba(38, 198, 218, 0.25);
}

.formulario button {
    background: linear-gradient(135deg, #26c6da 0%, #6dd7eb 100%);
    color: #08282f;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 10px;
    min-width: 140px;
}

.formulario button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(38, 198, 218, 0.35);
}

/* INFORMACIÓN */
.info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.info-box {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #26c6da;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-box h4 {
    color: #26c6da;
    margin-bottom: 10px;
    font-size: 18px;
}

.info-box p {
    color: #666;
    line-height: 1.8;
}

/* TABLAS */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th {
    background: linear-gradient(135deg, #26c6da 0%, #81d4fa 100%);
    color: #1a1a1a;
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

table td {
    border: 1px solid #ddd;
    padding: 12px;
    word-break: break-word;
    vertical-align: top;
}

table tr:hover {
    background-color: #f5f5f5;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    table-layout: auto;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

/* BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 120px;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, #26c6da 0%, #81d4fa 100%);
    color: #1a1a1a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 198, 218, 0.4);
}

.btn-secondary {
    background: #2d2d2d;
    color: #fff;
}

.btn, .btn-primary, .btn-secondary, .btn-danger, .btn-editar, .btn-eliminar {
    font-size: 14px;
}

.btn-editar, .btn-eliminar {
    padding: 8px 12px;
    margin: 2px 2px 2px 0;
}

.btn-secondary:hover {
    background: #1a1a1a;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-editar {
    background: #2196F3;
    color: white;
    padding: 5px 10px;
    margin: 2px;
}

.btn-eliminar {
    background: #f44336;
    color: white;
    padding: 5px 10px;
    margin: 2px;
}

/* MENSAJE */
.mensaje {
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    font-weight: 500;
}

.exito {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* FOOTER */
footer {
    background: linear-gradient(135deg, #0a2a35 0%, #0f4d60 100%);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 3px solid #26c6da;
}

footer h4 {
    color: #26c6da;
    margin-bottom: 15px;
}

footer p {
    margin: 8px 0;
    color: #ccc;
}

footer a {
    color: #26c6da;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
    }

    nav > div:first-child {
        flex-direction: column;
        width: 100%;
    }

    .nav-auth {
        width: 100%;
        justify-content: center;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .grid-productos,
    .grid-servicios,
    .info-container {
        grid-template-columns: 1fr;
    }

    .seccion {
        padding: 20px 15px;
    }

    table {
        font-size: 12px;
    }

    table th, table td {
        padding: 10px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
/* CATÁLOGO Y SOLICITUDES PERSONALIZADAS */
.texto-centro {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.tarjeta-categoria {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.tarjeta-categoria span {
    color: #26c6da;
    font-weight: bold;
}

.pagina-catalogo {
    padding-top: 25px;
}

.enlace-volver {
    color: #0d5c70;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.enlace-volver:hover {
    color: #26c6da;
}

.nota-imagenes {
    text-align: center;
    color: #5d6b70;
    font-size: 14px;
    margin-bottom: 25px;
}

.grid-catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.producto-catalogo {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d9edf1;
    box-shadow: 0 4px 14px rgba(3, 64, 79, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.producto-catalogo:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(3, 64, 79, 0.18);
}

.producto-catalogo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.producto-catalogo-contenido {
    padding: 18px;
}

.producto-catalogo h3 {
    margin: 0 0 10px;
    color: #0d5c70;
    font-size: 20px;
}

.producto-catalogo p {
    color: #5d666a;
    margin-bottom: 12px;
}

.precio-producto {
    color: #08798b !important;
    font-weight: 800;
    font-size: 19px;
}

.stock-producto {
    font-size: 13px;
    color: #607d8b !important;
}

.formulario-personalizado {
    max-width: 900px;
    margin: 25px auto 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 22px;
}

.form-grid label {
    display: block;
    font-weight: 700;
    color: #1f383f;
    margin-top: 8px;
}

.campo-ancho-completo {
    grid-column: 1 / -1;
}

.campo-otro[hidden] {
    display: none;
}

@media (max-width: 650px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .campo-ancho-completo {
        grid-column: auto;
    }
}

/* BOTONES Y AVISOS AGREGADOS: clientes, consultas y reservas */
.btn-registro {
    background: #ffffff;
    color: #0d5c70 !important;
    border: 2px solid #26c6da;
    font-weight: 700;
}

.btn-registro:hover {
    background: #dffaff !important;
    color: #08282f !important;
}

.usuario-header {
    color: #26c6da;
    font-weight: 700;
    white-space: nowrap;
}

.tarjeta-categoria {
    text-decoration: none;
    display: block;
}

.tarjeta-categoria span {
    color: #0c9eb3;
    font-weight: 700;
}

.mensaje {
    padding: 14px;
    margin: 18px 0;
    border-radius: 7px;
    font-weight: 600;
}

.mensaje.exito {
    background: #d9f4df;
    border: 1px solid #9bd6a7;
    color: #176128;
}

.mensaje.error {
    background: #ffe0e0;
    border: 1px solid #f0aaaa;
    color: #8d2020;
}


/* ================================
   AJUSTE FINAL HEADER / LOGO
   Este bloque asegura que el logo no se agrande aunque haya CSS duplicado arriba.
================================ */
header .logo {
    height: 80px;
    padding: 6px 30px;
}

header .logo-img {
    height: 70px;
    width: auto;
    max-width: 360px;
    object-fit: contain;
}

header .logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

header nav {
    min-height: 95px;
    padding: 18px 45px;
}

@media (max-width: 768px) {
    header .logo {
        height: 72px;
        padding: 6px 15px;
    }

    header .logo-img {
        height: 58px;
        max-width: 290px;
    }

    header nav,
    header .navbar {
        padding: 16px 20px;
        min-height: auto;
        flex-direction: column;
        justify-content: center;
    }

    header nav > div:first-child,
    header .nav-links {
        width: 100%;
        justify-content: center;
        flex-direction: row;
    }

    header .nav-auth {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 500px) {
    header .logo {
        height: 62px;
    }

    header .logo-img {
        height: 48px;
        max-width: 240px;
    }

    header nav,
    header .navbar {
        padding: 12px;
    }

    header nav a,
    header .nav-links a,
    header .btn-login,
    header .btn-registro,
    header .btn-logout {
        font-size: 13px;
        padding: 9px 10px !important;
    }
}

/* =========================================================
   MEJORAS DE CUMPLIMIENTO: servicios, galería y contacto
========================================================= */
.admin-page .formulario label {
    display: block;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 4px;
    color: #1f383f;
}

.check-line {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.check-line input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.galeria-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(3, 64, 79, 0.14);
    border: 1px solid #d9edf1;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.galeria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(3, 64, 79, 0.20);
}

.galeria-card img,
.mini-imagen {
    object-fit: cover;
    background: #edf7f9;
}

.galeria-card img {
    width: 100%;
    height: 210px;
    display: block;
}

.galeria-info {
    padding: 16px;
}

.galeria-info h3 {
    color: #0d5c70;
    font-size: 18px;
    margin-bottom: 8px;
}

.galeria-info p {
    color: #5d666a;
}

.aviso-privacidad {
    margin-top: 20px;
    padding: 14px 18px;
    border-left: 5px solid #26c6da;
    background: #e9fbff;
    border-radius: 8px;
    color: #1f383f;
}

.formulario-contacto-admin textarea {
    min-height: 85px;
}

@media (max-width: 700px) {
    .grid-galeria {
        grid-template-columns: 1fr;
    }
}
