body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    background:#f4f1e8;
    color:#10251f;
}

#contenedor{
    width:100%;
    margin:auto;
    background:#f8f6ee;
}

/* CABECERA */
.hero{
 min-height:460px;
    color:#f3d58a;
    background-image:
        linear-gradient(rgba(3,20,14,0.35),rgba(3,20,14,0.60)),
        url("../img/cabecera-relojes.png");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    position:relative;
}

.hero::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:3px;
    background:linear-gradient(
        to right,
        transparent,
        #c99d3d,
        transparent
    );
}

.barra-superior{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 70px;
}

.marca{
    display:flex;
    align-items:center;
    gap:18px;
}

.marca img{
    width:180px;
    height:auto;
    object-fit:contain;
}

.marca h1{
    margin:0;
    font-size:42px;
    text-transform:uppercase;
    letter-spacing:2px;
    color:#e5bd57;
}

.marca p{
    margin:4px 0 0 0;
    text-transform:uppercase;
    letter-spacing:5px;
    color:#d9a94d;
}

nav a{
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-transform: uppercase;
}

nav a:hover{
    color:#e5bd57;
}

.hero-contenido{
    margin-left:160px;
    margin-top:-10px;
    max-width:520px;
}

.hero-contenido h2{
    font-size:56px;
    line-height:1.05;
    margin:0;
    color:#f6d99a;
    text-transform:uppercase;
    letter-spacing:2px;
}

.hero-contenido p{
    color:#e8c36f;
    text-transform:uppercase;
    letter-spacing:3px;
    margin:22px 0;
}

.boton-hero{
    display:inline-block;
    border:1px solid #c99d3d;
    color:#f5d47f;
    padding:14px 40px;
    text-decoration:none;
    text-transform:uppercase;
    border-radius:4px;
    margin-top:12px;
}

.boton-hero:hover{
    background:#c99d3d;
    color:#06150f;
}

/* CATÁLOGO */

section{
    padding:30px 70px 0 70px;
}

.titulo-seccion{
    text-align:center;
    font-size:34px;
    text-transform:uppercase;
    letter-spacing:2px;
    margin:0 0 28px 0;
    color:#1e2f27;
}

.titulo-seccion::after{
    content:"";
    display:block;
    width:220px;
    height:1px;
    background:#c99d3d;
    margin:12px auto;
}

.productos{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,320px));
    gap:28px;
    max-width:1200px;
    margin:0 auto 35px auto;
    justify-content:center;
}

.producto{
    background:#fffdf7;
    border:1px solid #ddd7c7;
    border-radius:12px;
    padding:14px;
    text-align:center;
    box-shadow:0 5px 18px rgba(0,0,0,0.10);
    transition:0.3s;
}

.producto:hover{
    transform:translateY(-7px);
    box-shadow:0 12px 25px rgba(0,0,0,0.18);
}

.producto img{
    width:100%;
    height:220px;
    object-fit:cover;
    object-position:center;
    border-radius:10px;
}

.producto h3{
    margin-bottom:8px;
}

.producto h3 a{
    color:#10251f;
    text-decoration:none;
}

.producto p{
    color:#263b33;
    font-size:15px;
    min-height:42px;
}

.precio{
    font-size:20px;
    font-weight:bold;
    color:#0f2d22 !important;
}

.boton{
    background:#08261b;
    color:white;
    padding:10px 24px;
    border-radius:5px;
    text-decoration:none;
    display:inline-block;
    text-transform:uppercase;
    font-size:13px;
}

.boton:hover{
    background:#c99d3d;
    color:#06150f;
}

/* FRANJA SERVICIOS */

.franja-servicios{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
    background:linear-gradient(90deg,#062016,#0e3a29,#062016);
    color:white;
    padding:28px 80px;
    margin:40px -70px 0 -70px;
    border-top:1px solid #b88a35;
    border-bottom:1px solid #b88a35;
}

.franja-servicios div{
    display:grid;
    grid-template-columns:45px 1fr;
    column-gap:15px;
    align-items:center;
}

.franja-servicios span{
    color:#d6a94c;
    font-size:34px;
    grid-row:1 / span 2;
}

.franja-servicios h3{
    color:#e4c16f;
    text-transform:uppercase;
    font-size:15px;
    margin:0;
}

.franja-servicios p{
    color:#d8ddd8;
    margin:4px 0 0 0;
    font-size:14px;
}

/* DETALLE PRODUCTO */

.detalle{
    max-width:900px;
    margin:40px auto;
    background:white;
    padding:30px;
    border-radius:14px;
    text-align:center;
    box-shadow:0 8px 25px rgba(0,0,0,0.12);
}

.galeria img{
    width:220px;
    height:170px;
    object-fit:cover;
    border-radius:10px;
    margin:10px;
}

/* COMPRA */

.compra-contenedor{
    max-width:900px;
    margin:40px auto;
    background:#fffdf7;
    padding:30px;
    border-radius:14px;
    box-shadow:0 8px 25px rgba(0,0,0,0.12);
}

.imagen-compra{
    text-align:center;
}

.imagen-compra img{
    width:100%;
    max-width:520px;
    height:320px;
    object-fit:cover;
    object-position:center;
    border-radius:14px;
    display:block;
    margin:0 auto 20px auto;
}

/* ========================================================= */
/* FORMULARIO DE COMPRA */
/* ========================================================= */

.formulario-compra{
    background:#ffffff;
    border:1px solid #ddd7c7;
    border-radius:16px;
    padding:35px;
    box-shadow:0 8px 25px rgba(0,0,0,0.08);
    max-width:760px;
    margin:30px auto;
}

.formulario-compra h3{
    text-align:center;
    font-size:28px;
    color:#10251f;
    margin-bottom:30px;
}

.grid-compra{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px;
}

.campo-compra{
    display:flex;
    flex-direction:column;
}

.campo-compra label{
    font-weight:bold;
    color:#10251f;
    margin-bottom:8px;
    font-size:15px;
}

.campo-compra input{
    padding:14px;
    border:1px solid #cbb98d;
    border-radius:10px;
    background:white;
    font-size:15px;
    box-sizing:border-box;
}

.campo-compra input:focus{
    outline:none;
    border-color:#c99d3d;
}

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

.boton-comprar{
    display:block;
    width:100%;
    margin-top:28px;
    padding:16px;
    background:#0b3a2e;
    color:white;
    border:0;
    border-radius:10px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.boton-comprar:hover{
    background:#c99d3d;
    color:#111;
}

/* FOOTER */

footer{
    background:#062016;
    color:#dce3de;
    padding:35px 80px 18px 80px;
}

.footer-contenido{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:40px;
    max-width:1100px;
    margin:auto;
}

.footer-marca img{
    width:70px;
}

.footer-marca h3{
    color:#e5bd57;
    text-transform:uppercase;
    margin:8px 0 0 0;
}

.footer-marca p{
    color:#d9a94d;
    letter-spacing:3px;
    text-transform:uppercase;
}

footer h4{
    color:#e5bd57;
    text-transform:uppercase;
}

footer a{
    display:block;
    color:white;
    text-decoration:none;
    margin:6px 0;
}

footer a:hover{
    color:#e5bd57;
}

.copyright{
    text-align:center;
    border-top:1px solid rgba(201,157,61,0.4);
    padding-top:16px;
    margin-top:28px;
    color:#bfc8c2;
    font-size:13px;
}

/* RESPONSIVE */

@media(max-width:800px){
    .barra-superior{
        flex-direction:column;
        padding:20px;
    }

    nav a{
        margin:10px;
        display:inline-block;
    }

    .hero-contenido{
        margin:40px 25px;
    }

    .hero-contenido h2{
        font-size:38px;
    }

    section{
        padding:25px;
    }

    .franja-servicios{
        margin:30px -25px 0 -25px;
        padding:25px;
    }

    .footer-contenido{
        grid-template-columns:1fr;
    }
}

.compra-confirmada{
    max-width:650px;
    margin:35px auto 10px auto;
    padding:30px;
    text-align:center;
    background:linear-gradient(135deg,#0f3d2e,#1f6f50);
    color:white;
    border:1px solid #c9a227;
    border-radius:18px;
    box-shadow:0 12px 30px rgba(0,0,0,0.25);
}

.compra-confirmada h3{
    font-size:28px;
    color:#f6d99a;
    margin-top:0;
    margin-bottom:15px;
}

.compra-confirmada p{
    font-size:16px;
    line-height:1.6;
    color:#eef7f1;
}

.compra-confirmada .boton{
    margin-top:18px;
    background:#c9a227;
    color:#10251f;
}

.compra-confirmada .boton:hover{
    background:#f6d99a;
    color:#10251f;
}


.acciones-producto{
    margin-top:25px;
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.volver-producto{
    background:#5c6670;
    color:white;
    min-width:140px;
    text-align:center;
}

.volver-producto:hover{
    background:#7a8792;
    color:white;
}

.comprar-producto{
    background:#c99d3d;
    color:#10251f;
    min-width:180px;
    text-align:center;
    font-weight:bold;
}

.comprar-producto:hover{
    background:#f0c96c;
    color:#10251f;
}

/* CABECERA CHECKOUT */

.cabecera-checkout{
    min-height:120px;
    background:
        linear-gradient(rgba(3,20,14,0.88),rgba(3,20,14,0.92)),
        url("../img/cabecera-relojes.jpg");
    background-size:cover;
    background-position:center;
    border-bottom:1px solid rgba(201,157,61,0.25);
}

.cabecera-checkout .barra-superior{
    padding:18px 70px;
}

.cabecera-checkout .marca img{
    width:120px;
    height:auto;
}

.cabecera-checkout .marca h1{
    font-size:28px;
}

.cabecera-checkout .marca p{
    font-size:12px;
    letter-spacing:3px;
}

.cabecera-checkout nav a{
    font-size:13px;
}

/* GALERÍA PRODUCTO CORREGIDA */

.detalle{
    max-width:850px;
    margin:35px auto;
    padding:30px;
    background:#fffdf7;
    border-radius:14px;
    text-align:center;
    box-shadow:0 8px 25px rgba(0,0,0,0.12);
}

.galeria-producto{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
    gap:18px;
    max-width:760px;
    margin:25px auto;
    align-items:center;
    justify-items:center;
}

.miniatura-producto{
    width:170px !important;
    height:130px !important;
    object-fit:cover !important;
    border-radius:12px;
    cursor:pointer;
    border:2px solid transparent;
    box-shadow:0 6px 18px rgba(0,0,0,0.15);
    transition:0.3s;
    display:block;
}

.miniatura-producto:hover{
    transform:scale(1.05);
    border-color:#c99d3d;
}

/* VISOR IMAGEN GRANDE */

.visor-imagen{
    display:none;
    position:fixed;
    z-index:99999;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    background:rgba(0,0,0,0.88);
    justify-content:center;
    align-items:center;
}

.visor-imagen img{
    max-width:85vw !important;
    max-height:85vh !important;
    width:auto !important;
    height:auto !important;
    object-fit:contain !important;
    border-radius:14px;
    box-shadow:0 0 35px rgba(0,0,0,0.8);
}

.cerrar-visor{
    position:fixed;
    top:25px;
    right:40px;
    color:white;
    font-size:45px;
    font-weight:bold;
    cursor:pointer;
    z-index:100000;
}

.pagina-info{
    max-width:1100px;
    margin:60px auto;
    padding:40px;
}

.pagina-info h1{
    text-align:center;
    font-size:52px;
    color:#0f2d2b;
    margin-bottom:20px;
}

.intro-info{
    text-align:center;
    font-size:20px;
    max-width:850px;
    margin:0 auto 50px auto;
    color:#444;
    line-height:1.7;
}

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

.card-info{
    background:white;
    padding:30px;
    border-radius:18px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition:0.3s;
}

.card-info:hover{
    transform:translateY(-6px);
}

.card-info h2{
    color:#c99d3d;
    margin-bottom:15px;
}

.card-info p{
    color:#444;
    line-height:1.6;
}

.proyecto-academico{
    margin-top:50px;
    text-align:center;
    background:#0f2d2b;
    color:white;
    padding:30px;
    border-radius:18px;
}

.logo-link{
    text-decoration:none !important;
    color:inherit;
    display:flex;
    align-items:center;
}

.logo-link:hover{
    text-decoration:none !important;
}

.logo-link h1,
.logo-link p{
    text-decoration:none !important;
    border:none !important;
}

.logo-link *{
    text-decoration:none !important;
}


.marca h1,
.marca p{
    margin:0;
    border:0;
    outline:none;
}

.zona-buscador{
    max-width:900px;
    margin:30px auto 50px auto;
    padding:20px;
    display:flex;
    justify-content:center;
}

.form-buscador{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
}

.form-buscador input[type="text"]{
    width:420px;
    height:56px;
    padding:0 20px;
    border:2px solid #c9a227;
    border-radius:14px;
    background:white;
    color:#10251f;
    font-size:17px;
    font-family:Arial, Helvetica, sans-serif;
    box-sizing:border-box;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.form-buscador input[type="text"]::placeholder{
    color:#5c6663;
    font-size:16px;
}

.form-buscador input[type="submit"]{
    width:180px;
    height:56px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg,#0f2d2b,#1f4d49);
    color:white;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s ease;
    box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.form-buscador input[type="submit"]:hover{
    background:linear-gradient(135deg,#c9a227,#e0bb4f);
    color:#111;
    transform:translateY(-2px);
}

.form-buscador .limpiar-busqueda{
    width:180px;
    height:56px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:#6b7280;
    color:white;
    text-decoration:none;
    font-weight:bold;
    transition:0.3s ease;
}

.form-buscador .limpiar-busqueda:hover{
    background:#4b5563;
}

@media(max-width:768px){

    .form-buscador{
        flex-direction:column;
    }

    .form-buscador input[type="text"],
    .form-buscador input[type="submit"],
    .form-buscador .limpiar-busqueda{
        width:100%;
        max-width:420px;
    }
}

/* BUSCADOR DEFINITIVO */

.zona-buscador{
    width:100% !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    margin:35px auto 45px auto !important;
    padding:20px !important;
    box-sizing:border-box !important;
}

.zona-buscador .form-buscador{
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    gap:18px !important;
    flex-wrap:wrap !important;
    width:100% !important;
}

.zona-buscador .form-buscador input[type="text"]{
    width:460px !important;
    min-width:460px !important;
    height:56px !important;
    padding:0 20px !important;
    border:2px solid #c9a227 !important;
    border-radius:14px !important;
    background:#fffdf7 !important;
    color:#10251f !important;
    font-size:16px !important;
    box-sizing:border-box !important;
}

.zona-buscador .form-buscador input[type="submit"]{
    width:180px !important;
    height:56px !important;
    border:none !important;
    border-radius:14px !important;
    background:#0f2d2b !important;
    color:white !important;
    font-size:16px !important;
    font-weight:bold !important;
    cursor:pointer !important;
}

.zona-buscador .form-buscador input[type="submit"]:hover{
    background:#c9a227 !important;
    color:#111 !important;
}

/* Tipografía premium menú */
.barra-superior nav a{
    font-family:'Cinzel', serif !important;
    font-size:17px;
    letter-spacing:1.6px;
    font-weight:700;
}

/* Menú superior premium más legible */
.barra-superior nav{
    display:flex;
    gap:38px;
    align-items:center;
}

.barra-superior nav a{
    font-family:'Cinzel', serif !important;
    font-size:15px !important;
    letter-spacing:1.2px;
    font-weight:600;
    color:#fff7df;
    text-shadow:0 2px 8px rgba(0,0,0,0.85);
    margin-left:0;
    position:relative;
}

/* línea dorada elegante al pasar el ratón */
.barra-superior nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-7px;
    width:0;
    height:1px;
    background:#c99d3d;
    transition:0.3s;
}

.barra-superior nav a:hover{
    color:#e5bd57;
}

.barra-superior nav a:hover::after{
    width:100%;
}

.barra-superior nav a{
    font-family:'Montserrat', sans-serif !important;
    font-size:15px;
    font-weight:600;
    letter-spacing:1.8px;
    text-transform:uppercase;
    color:#fff7df;
    text-decoration:none;
    text-shadow:0 2px 8px rgba(0,0,0,0.8);
    transition:0.3s;
}

.barra-superior nav a:hover{
    color:#d6a83f;
}

/* BLOQUE COMPRA BLOQUEADA */

.compra-bloqueada{
    max-width:680px;
    margin:35px auto;
    padding:36px;
    text-align:center;
    background:#fffdf7;
    border:1px solid #c99d3d;
    border-radius:20px;
    box-shadow:0 12px 32px rgba(0,0,0,0.14);
}

.icono-bloqueo{
    width:58px;
    height:58px;
    margin:0 auto 18px auto;
    border-radius:50%;
    background:#c99d3d;
    color:#10251f;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    font-weight:bold;
}

.compra-bloqueada h3{
    color:#0f2d2b;
    font-size:28px;
    margin:0 0 14px 0;
}

.compra-bloqueada p{
    color:#444;
    font-size:16px;
    line-height:1.6;
    margin-bottom:26px;
}

.boton-registro{
   .caja-login input[type="submit"]{
    display:block;
    width:240px;
    margin:22px auto 0 auto;
    padding:14px 18px;
    border:none;
    border-radius:12px;
    background:#8f8a2a;
    color:white;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}
}

.boton-registro:hover{
    background:#c99d3d;
    color:#10251f;
}


/* MENSAJE COMPRA CONFIRMADA */

.compra-confirmada{
    max-width:700px;
    margin:35px auto;
    padding:38px;
    text-align:center;
    background:linear-gradient(135deg,#0f3d2e,#1f6f50);
    color:white;
    border:1px solid #c9a227;
    border-radius:22px;
    box-shadow:0 14px 36px rgba(0,0,0,0.25);
}

.icono-confirmacion{
    width:64px;
    height:64px;
    margin:0 auto 18px auto;
    border-radius:50%;
    background:#c9a227;
    color:#10251f;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:38px;
    font-weight:bold;
}

.compra-confirmada h3{
    font-size:30px;
    color:#f6d99a;
    margin:0 0 16px 0;
}

.compra-confirmada p{
    font-size:16px;
    line-height:1.7;
    color:#eef7f1;
}

.compra-confirmada .boton{
    margin-top:20px;
    background:#c9a227;
    color:#10251f;
    padding:13px 28px;
    border-radius:8px;
}

.compra-confirmada .boton:hover{
    background:#f6d99a;
    color:#10251f;
}




.flecha-login{
    display:inline-block;
    transform:translateY(-1px);
}