:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --gold: #d4af37;
    --gray: #f5f5f5;
}

/* ===============================
   RESET & BODY
=============================== */
* { box-sizing:border-box; margin:0; padding:0; }
body { font-family:'Playfair Display', serif; color:var(--black); line-height:1.6; }

/* ===============================
   HEADER / HERO
=============================== */

a{
    text-decoration:none;
}

header {
    position: relative;
    width:100%;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color:var(--white);
}

header::after {
    font-size:5rem;
    color:var(--gold);
    position:absolute;
    top:10%;
    left:50%;
    transform:translateX(-50%);
    opacity:0.2;
}

header h1 {
    font-size:4rem;
    color:var(--gold);
    margin-bottom:20px;
}

header p {
    font-size:1.3rem;
    max-width:700px;
    margin-bottom:30px;
    color:#ddd;
}

.btn-hero {
    padding:15px 30px;
    background:var(--gold);
    color:var(--black);
    font-weight:bold;
    font-size:1rem;
    border-radius:8px;
    transition: transform 0.3s, background 0.3s;
    border:2px solid var(--gold);
}

.btn-hero:hover {
    background:#b8932e;
    transform:scale(1.05);
}

nav {
    position:absolute;
    top:20px;
    right:50px;
}

nav a {
    margin-left:25px;
    color:var(--white);
    font-weight:600;
    transition:color 0.3s;
}

nav a:hover { color:var(--gold); }

/* ===============================
   SECCIONES
=============================== */
section { padding:80px 20px; }

.section-title {
    text-align:center;
    font-size:2.5rem;
    color:var(--black);
    margin-bottom:60px;
    position:relative;
}

.section-title::after {
    display:block;
    font-size:2rem;
    color:var(--gold);
    margin:15px auto 0;
}

/* ===============================
   CARDS
=============================== */
.cards { display:flex; flex-wrap:wrap; justify-content:center; gap:30px; }

.card {
    background:var(--white);
    border-radius:16px;
    padding:30px 20px;
    width:300px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
    transition:transform 0.5s, box-shadow 0.5s;
    position:relative;
}

.card img {
    width: 100%;
    max-height: 200px;       /* Máximo alto permitido */
    object-fit: contain;     /* Muestra la imagen completa dentro */
    border-radius: 12px 12px 0 0;
    margin-bottom: 15px;
    display: block;
}


.card::before {

    font-size:2rem;
    color:var(--gold);
    position:absolute;
    top:-15px;
    left:50%;
    transform:translateX(-50%);
}

.card:hover {
    transform:translateY(-15px) scale(1.05);
    box-shadow:0 20px 40px rgba(0,0,0,0.25);
}

.card h3 { font-size:1.5rem; margin-bottom:15px; color:var(--black); }
.card p { color:#555; }

.btn-gold {
    display:inline-block;
    margin-top:20px;
    padding:10px 25px;
    background:var(--gold);
    color:var(--black);
    font-weight:bold;
    border-radius:8px;
    transition:background 0.3s, transform 0.3s;
    border:2px solid var(--gold);
}

.btn-gold:hover {
    background:#b8932e;
    transform:scale(1.05);
}

/* ===============================
   CONTACTO
=============================== */
form { max-width:500px; margin:0 auto; display:flex; flex-direction:column; gap:15px; }

form input, form textarea {
    padding:12px;
    border-radius:8px;
    border:1px solid #ccc;
    font-size:1rem;
    width:100%;
}

form button {
    padding:15px;
    border:none;
    background:var(--gold);
    font-weight:bold;
    border-radius:8px;
    cursor:pointer;
    transition:background 0.3s, transform 0.3s;
    border:2px solid var(--gold);
}

form button:hover { background:#b8932e; transform:scale(1.05); }

/* ===============================
   FOOTER
=============================== */
footer {
    text-align:center;
    padding:40px 20px;
    background:var(--black);
    color:var(--gold);
}

footer a { color:var(--gold); font-weight:bold; }

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width:768px){
    .cards { flex-direction:column; align-items:center; }
    header h1 { font-size:3rem; }
    header p { font-size:1.1rem; }
    nav { top:15px; right:20px; }
}




























/*PRODUCT.PHP*/






.carousel {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background: #000;
    color: #fff;
    padding: 2rem;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    max-width: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

/* Texto inicial */
.carousel-slide h1 {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: var(--gold, #d4af37);
}

.carousel-slide p {
    font-size: 1.2rem;
    max-width: 700px;
}

/* Controles */
.carousel-controls {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.carousel-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: var(--gold, #d4af37);
}

.features{
    padding-left:25px
}

.alerta {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  opacity: 1;
  transition: opacity 1s ease-out;
  z-index: 9999;
}

.alerta.exito {
  background-color: #28a745; /* verde */
}

.alerta.error {
  background-color: #dc3545; /* rojo */
}

body {
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.fade-in,
body.loaded {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}
