:root{
    --freixenet-gold: #caa85b;
    --freixenet-light: #faf4ea;
    --freixenet-dark: #3d3a36;
    --freixenet-beige: #fdf8f0;
    --freixenet-contrast: #6b675f;
}

/* Reset / base */
body{
    font-family: 'Montserrat', sans-serif;
    background-color: var(--freixenet-light);
    color: var(--freixenet-dark);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,h2,h3,.freixenet-script{
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* HERO */
.hero{
    min-height: 60vh;
    width: 100%;
    display: block;
}

/* Texto principal debajo del KV */
.hero-text-section{
    padding: 2.2rem 1rem;
    background: transparent;
    color: var(--freixenet-dark);
    text-align: center;
}

.hero-text-section .display-6 {
    font-size: 2.2rem;
    color: var(--freixenet-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-text-section .lead {
    font-size: 1.2rem;
    color: var(--freixenet-contrast);
    font-weight: 400;
    margin-top: .5rem;
}

/* BANNER PLAZO */
.participation-banner{
    background: linear-gradient(90deg, rgba(202,168,91,0.12), rgba(202,168,91,0.06));
    border-top: 1px solid rgba(202,168,91,0.12);
    border-bottom: 1px solid rgba(202,168,91,0.06);
    padding: .9rem 1rem;
    color: var(--freixenet-dark);
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* BRINDIS */
.brindis-section{
    background: var(--freixenet-gold);
    color: white;
    padding: 2.4rem 1rem;
    text-align: center;
}

.brindis-section h2{
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: .5rem;
}

.brindis-section h3{
    font-size: 1.4rem;
    font-weight: 300;
    margin: 0;
}

/* CÓMO PARTICIPAR */
.como-participar-section{
    background-color: white;
    padding: 2.5rem 1rem;
}

.como-participar-section h2{
    color: var(--freixenet-dark);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.step{
    border-radius: 12px;
    background: #fff;
    padding: 1.5rem 1rem;
    min-height: 200px;
    height: 100%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    border: 1px solid rgba(202,168,91,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.step:hover{
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(202,168,91,0.3);
}

.step-icon{
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(202,168,91,0.1) 0%, rgba(202,168,91,0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.step:hover .step-icon{
    background: linear-gradient(135deg, rgba(202,168,91,0.15) 0%, rgba(202,168,91,0.1) 100%);
    transform: scale(1.1);
}

.step-icon i{
    font-size: 1.8rem;
    color: var(--freixenet-gold);
    transition: all 0.3s ease;
}

.step:hover .step-icon i{
    transform: rotate(-5deg);
}

.step h5{
    color: var(--freixenet-dark);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.step p{
    color: var(--freixenet-contrast);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* PREMIOS */
.premios-section{
    background: var(--freixenet-beige);
    padding: 3rem 1rem;
}

.premios-section h2{
    color: var(--freixenet-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.premio-card{
    border-radius: 20px;
    overflow: hidden;
    border: none;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    max-width: 800px;
    margin: 0 auto;
}

.premio-card:hover{
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.premio-imagen-container {
    width: 100%;
    /* height: 320px; */
    overflow: hidden;
    position: relative;
}

.premio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.premio-card:hover .premio-img {
    transform: scale(1.05);
}

.card-body {
    padding: 2rem;
    text-align: center;
}

.card-title {
    color: var(--freixenet-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-text {
    color: var(--freixenet-contrast);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.card-text strong {
    color: var(--freixenet-gold);
    font-weight: 600;
}

.text-muted {
    color: var(--freixenet-gold) !important;
    font-size: 0.9rem;
    font-weight: 500;
    font-style: italic;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(202,168,91,0.2);
}

/* FORMULARIO */
.formulario-section{
    background: linear-gradient(135deg, #fefefe 0%, #faf8f5 100%);
    padding: 3rem 1rem;
    border-top: 1px solid rgba(202,168,91,0.1);
    border-bottom: 1px solid rgba(202,168,91,0.1);
}

.formulario-section h2{
    color: var(--freixenet-dark);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

.form-container{
    max-width: 600px;
}

.input-group{
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group-text{
    background: rgba(202,168,91,0.08);
    border: 1.5px solid rgba(202,168,91,0.2);
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 0.75rem 1rem;
    color: var(--freixenet-gold);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control{
    border: 1.5px solid rgba(202,168,91,0.2);
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    color: var(--freixenet-dark);
}

.form-control:focus,
.form-control:focus + .input-group-text{
    border-color: var(--freixenet-gold);
    box-shadow: 0 0 0 3px rgba(202,168,91,0.1);
    background: #fff;
}

.form-control::placeholder{
    color: #888;
    font-weight: 300;
}

/* Checkbox */
.form-check{
    margin: 2rem 0;
    text-align: center;
    padding: 1rem;
    background: rgba(202,168,91,0.05);
    border-radius: 8px;
    border: 1px solid rgba(202,168,91,0.1);
}

.form-check-input{
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.2em;
    border: 2px solid var(--freixenet-contrast);
}

.form-check-input:checked{
    background-color: var(--freixenet-gold);
    border-color: var(--freixenet-gold);
}

.form-check-input:focus{
    box-shadow: 0 0 0 2px rgba(202,168,91,0.25);
}

.form-check-input#terminos {
    margin-right: 10px;
    margin-left: 0;
}

.form-check-label{
    color: var(--freixenet-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

.text-gold{
    color: var(--freixenet-gold) !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.text-gold:hover{
    color: var(--freixenet-dark) !important;
    text-decoration: underline;
}

.form-text{
    color: var(--freixenet-contrast) !important;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* BOTONES */
.btn-gold{
    background: linear-gradient(135deg, var(--freixenet-gold) 0%, #d8b769 100%);
    color: white;
    border: 2px solid var(--freixenet-gold);
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(202,168,91,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-gold:hover{
    background: transparent;
    color: var(--freixenet-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(202,168,91,0.4);
}

.btn-outline-gold{
    border: 2px solid var(--freixenet-dark);
    color: var(--freixenet-dark);
    background: transparent;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline-gold:hover{
    border-color: var(--freixenet-gold);
    color: var(--freixenet-gold);
    transform: translateY(-2px);
}

/* Footer */
.footer{
    background: var(--freixenet-dark);
    color: white;
    padding: 2rem 1rem;
    text-align:center;
}

.footer img{
    max-width: 140px;
    margin-bottom: .8rem;
}

.good-luck{
    color: var(--freixenet-gold);
    font-weight:600;
}

/* Redes sociales */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--freixenet-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    transition: all 0.35s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.social-btn i {
    transition: transform 0.35s ease;
}

.social-btn:hover {
    transform: scale(1.15);
    background: linear-gradient(135deg, #d8b769 0%, #c8a85a 100%);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.social-btn:hover i {
    transform: rotate(-45deg);
}

/* MODAL */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #fdf8f0 0%, #faf4ea 100%);
    padding: 1.5rem 2rem;
}

.modal-title {
    color: var(--freixenet-dark);
    font-weight: 700;
    font-size: 1.4rem;
}

.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233d3a36'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    color: var(--freixenet-contrast);
    line-height: 1.6;
}

.modal-body h6 {
    font-weight: 600;
    font-size: 1.1rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body strong {
    color: var(--freixenet-dark);
}

.modal-footer {
    padding: 1.5rem 2rem;
    background: #fafafa;
}

.modal.fade .modal-content {
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* RESPONSIVE UNIFICADO */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }

    .hero-text-section .display-6 {
        font-size: 1.8rem;
    }

    .hero-text-section .lead {
        font-size: 1.1rem;
    }

    .participation-banner {
        font-size: 1rem;
        padding: 0.7rem 1rem;
    }

    .brindis-section h2 {
        font-size: 1.5rem;
    }

    .brindis-section h3 {
        font-size: 1.2rem;
    }

    .step{
        height: auto;
        min-height: 160px;
        padding: 1.2rem 0.8rem;
    }

    .step-icon{
        width: 70px;
        height: 70px;
    }

    .step-icon i{
        font-size: 1.6rem;
    }

    .premios-section {
        padding: 2rem 1rem;
    }

    .premios-section h2 {
        font-size: 1.7rem;
        margin-bottom: 1.5rem;
    }

    .premio-imagen-container {
        height: 200px;
    }

    .card-body {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-text {
        font-size: 0.95rem;
    }

    .formulario-section{
        padding: 2rem 1rem;
    }

    .formulario-section h2{
        font-size: 1.7rem;
    }

    .form-check{
        padding: 0.8rem;
        text-align: left;
    }

    .btn-gold,
    .btn-outline-gold{
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }
}


/* === CARRUSEL INTERNO DE PREMIOS === */
.premio-imagen-container {
    position: relative;
    border-radius: 20px 0 0;
    overflow: hidden;
    /* height: 380px; */
}

.premio-imagen-container img {
    object-fit: contain;
    height: 100%;
    width: 100%;
    transition: transform 1.2s ease, opacity 1.2s ease;
}

/* Fade suave */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 1s;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
    transform: none;
}

/* Controles laterales */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(61, 58, 54, 0.75);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    background-size: 60%;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: var(--freixenet-gold);
    transform: scale(1.05);
}

/* Indicadores */
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(61, 58, 54, 0.4);
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--freixenet-gold);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .premio-imagen-container {
        height: 200px;
    }
}


/* === HERO RESPONSIVE (usa variables CSS definidas en el style inline) === */
.hero {
    width: 100%;
    min-height: clamp(70vh, 90vh, 110vh);
    background-image: var(--hero-mobile);
    background-size: cover;
    background-position: center top; /* enfoca arriba en mobile para no cortar sujeto */
    background-repeat: no-repeat;
    transition: background-image 0.35s ease-in-out, background-position 0.35s ease-in-out;
  }

  /* Micro-breakpoint smartphones muy chicos (≤ 347px) */
  @media (max-width: 347.98px) {
    .hero {
      background-image: var(--hero-mobile);
      background-position: center top;
    }
  }

  /* 348–767: mobile amplio / phones grandes */
  @media (min-width: 348px) and (max-width: 767.98px) {
    .hero {
      background-image: var(--hero-mobile);
      background-position: center top;
    }
  }

  /* 768–991: tablet */
  @media (min-width: 768px) and (max-width: 991.98px) {
    .hero {
      background-image: var(--hero-tablet);
      background-position: center 35%;
    }
  }

  /* ≥ 992: desktop */
  @media (min-width: 992px) {
    .hero {
      background-image: var(--hero-desktop);
      background-position: center 40%;
    }
  }

  /* ≥ 1400: pantallas muy grandes */
  @media (min-width: 1400px) {
    .hero {
      background-position: center 45%;
    }
  }
