

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Jost:wght@300;400;500;600&display=swap');

:root{
    --black:        #0a0a0a;
    --black-soft:   #141210;
    --charcoal:     #1d1a16;
    --gold:         #c9a227;
    --gold-light:   #e8c468;
    --gold-dim:     #8a6d1f;
    --ivory:        #f3ede0;
    --muted:        #b3a98f;
    --shadow-gold:  rgba(201, 162, 39, 0.25);
}

*{ box-sizing: border-box; }

body{
    margin: 0;
    padding: 0;
    background-color: var(--black);
    background-image:
            radial-gradient(circle at 50% 0%, rgba(201,162,39,0.06), transparent 55%);
    color: var(--ivory);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

center{
    display: block;
    padding: 28px 16px 8px;
}

h1{
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 2.4rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-light);
    text-shadow: 0 0 18px var(--shadow-gold);
    margin: 0 0 6px;
}

h1::after{
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

h2{
    font-family: 'Cinzel', serif;
    font-weight: 500;
    font-size: 1.3rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 10px;
    margin: 36px 16px 18px;
}

h3{
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 0.04em;
    margin: 12px 0 6px;
}

hr{
    border: none;
    height: 1px;
    margin: 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

a{
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

a:hover{
    color: var(--ivory);
    text-shadow: 0 0 8px var(--shadow-gold);
}

p{
    color: var(--muted);
    margin: 8px 16px;
}

table{
    border-collapse: collapse;
    margin: 0 auto;
}

table[width="100%"]{
    width: calc(100% - 32px);
    margin: 0 16px 0;
}

body > table:first-of-type,
body > table:nth-of-type(1){
    background: var(--black-soft);
    border: 1px solid var(--gold);
    box-shadow: 0 0 24px var(--shadow-gold) inset;
}

body > table:first-of-type td,
body > table:nth-of-type(1) td{
    border: 1px solid var(--gold-dim);
    padding: 14px 10px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body > table:first-of-type td a,
body > table:nth-of-type(1) td a{
    color: var(--gold-light);
    display: block;
}

body > table:first-of-type td:hover,
body > table:nth-of-type(1) td:hover{
    background: rgba(201, 162, 39, 0.08);
}


table:not(:first-of-type){
    background: var(--charcoal);
    border: 1px solid var(--gold-dim);
}

table:not(:first-of-type) td{
    border: 1px solid var(--gold-dim);
    padding: 16px;
    vertical-align: top;
}


img{
    border: 1px solid var(--gold);
    padding: 4px;
    background: var(--black-soft);
    box-shadow: 0 0 20px var(--shadow-gold);
    max-width: 100%;
    height: auto;
}


button{
    background: transparent;
    color: var(--gold-light);
    border: 1px solid var(--gold);
    padding: 10px 26px;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

button:hover{
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 0 16px var(--shadow-gold);
}


select,
input[type="text"],
input[type="email"],
textarea{
    width: 100%;
    background: var(--black);
    color: var(--ivory);
    border: 1px solid var(--gold-dim);
    padding: 8px 10px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
}

select:focus,
input:focus,
textarea:focus{
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 8px var(--shadow-gold);
}

input::placeholder,
textarea::placeholder{
    color: var(--muted);
}

h3 + img + p,
img + p{
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    letter-spacing: 0.04em;
}

body > p:last-of-type{
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin: 24px 0 30px;
}


.carousel{
    position: relative;
    width: 700px;
    max-width: 100%;
    height: 420px;
    margin: 0 auto;
    border: 1px solid var(--gold);
    background: var(--black-soft);
    box-shadow: 0 0 24px var(--shadow-gold);
    overflow: hidden;
}

.carousel img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    padding: 0;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    animation-name: fundido;
    animation-duration: 16s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}


.carousel img:nth-child(1){ animation-delay: 0s; }
.carousel img:nth-child(2){ animation-delay: -30s; }
.carousel img:nth-child(3){ animation-delay: -24s; }
.carousel img:nth-child(4){ animation-delay: -20s; }
.carousel img:nth-child(5){ animation-delay: -16s; }
.carousel img:nth-child(6){ animation-delay: -12s; }
.carousel img:nth-child(7){ animation-delay: -8s; }



@keyframes fundido{
    0%   { opacity: 0; }
    3%   { opacity: 1; }
    22%  { opacity: 1; }
    25%  { opacity: 0; }
    100% { opacity: 0; }
}

@media (max-width: 640px){
    .carousel{ height: 260px; }
}


@media (max-width: 640px){
    h1{ font-size: 1.7rem; letter-spacing: 0.1em; }
    table[width="100%"] tr{ display: flex; flex-direction: column; }
    body > table:first-of-type td,
    body > table:nth-of-type(1) td{ border-bottom: 1px solid var(--gold-dim); }
}


/* ===== Revista de autos ===== */

.revista-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 0 16px 40px;
}

.revista-card{
    background: var(--charcoal);
    border: 1px solid var(--gold-dim);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.revista-card:hover{
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 8px 24px var(--shadow-gold);
}

.revista-card img{
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: none;
    padding: 0;
    box-shadow: none;
    display: block;
}

.revista-card-caption{
    padding: 12px 14px;
    text-align: center;
}

.revista-card-caption h3{
    margin: 0 0 4px;
    font-size: 1rem;
}

.revista-card-caption span{
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== Ventana tipo revista abierta ===== */

.modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.modal-overlay.activo{
    opacity: 1;
    visibility: visible;
}

.magazine{
    display: flex;
    background: var(--ivory);
    max-width: 920px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 70px rgba(0,0,0,0.7), 0 0 40px var(--shadow-gold);
    perspective: 1800px;
    transform: rotateY(-100deg);
    transform-origin: left center;
    transition: transform 0.55s ease;
}

.modal-overlay.activo .magazine{
    transform: rotateY(0deg);
}

.magazine-spine{
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 26px;
    margin-left: -13px;
    background: linear-gradient(90deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.18) 30%,
        rgba(0,0,0,0.35) 50%,
        rgba(0,0,0,0.18) 70%,
        rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 2;
}

.magazine-page{
    flex: 1 1 50%;
    min-width: 0;
    padding: 30px;
    position: relative;
}

.magazine-page-left{
    background: var(--black-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.magazine-page-left img{
    width: 100%;
    border: none;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.magazine-caption{
    margin-top: 16px;
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.75rem;
    text-align: center;
}

.magazine-page-right{
    background: var(--ivory);
    color: #2c2820;
    font-family: 'Jost', sans-serif;
}

.magazine-kicker{
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: var(--gold-dim);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.magazine-page-right h3{
    font-family: 'Cinzel', serif;
    color: #23201a;
    font-size: 1.55rem;
    letter-spacing: 0.02em;
    margin: 0 0 14px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 12px;
}

.magazine-page-right p{
    color: #4a4536;
    margin: 0 0 16px;
}

.magazine-page-number{
    margin-top: 20px;
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--gold-dim);
    text-align: right;
}

.modal-cerrar{
    position: absolute;
    top: 10px;
    right: 14px;
    background: rgba(10,10,10,0.75);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    z-index: 3;
}

.modal-cerrar:hover{
    background: var(--gold);
    color: var(--black);
}

.modal-specs{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px 20px;
    margin: 16px 0 0;
}

.modal-specs div{
    border-bottom: 1px solid rgba(0,0,0,0.15);
    padding-bottom: 6px;
    color: #33301f;
}

.modal-specs strong{
    display: block;
    color: var(--gold-dim);
    font-family: 'Cinzel', serif;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

@media (max-width: 700px){
    .magazine{
        flex-direction: column;
        transform: scale(0.9);
        transition: transform 0.35s ease;
    }
    .modal-overlay.activo .magazine{
        transform: scale(1);
    }
    .magazine-spine{ display: none; }
    .magazine-page{ padding: 22px; }
    .magazine-page-left img{ max-height: 240px; object-fit: cover; }
}