:root {
    /* Paleta de Colores Proporcionada */
    --cream: #efe0b9;
    --paper: #f2e4c2;
    --paper-2: #e9d3a5;
    --wine: #661d29;
    --wine-2: #421218;
    --ink: #1a1410;
    --gold: #c79b49;
    --muted: #6d5a4c;
    --line: rgba(102, 29, 41, 0.22);
    --shadow: 0 18px 45px rgba(36, 14, 9, 0.22);
    
    /* Tipografía */
    --font-serif: "Cormorant Garamond", Georgia, serif;
    --font-sans: "Montserrat", Arial, sans-serif;

    /* Mapeo al Layout Actual */
    --bg-dark: var(--ink);
    --bg-dark-secondary: var(--wine-2);
    --bg-light: var(--paper);
    --text-light: var(--cream);
    --text-dark: var(--ink);
    --text-muted-dark: var(--paper-2);
    --text-muted-light: var(--muted);
    --accent-red: var(--wine);
    --accent-gold: var(--gold);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Utilities */
.text-red { color: var(--accent-red); }
.text-gold { color: var(--accent-gold); }
.italic { font-style: italic; }
.section-padding { padding: 100px 0; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--text-light);
    border: 1px solid var(--accent-red);
}

.btn-primary:hover {
    background-color: #5c1813;
    border-color: #5c1813;
}

.btn-outline-light {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(244, 238, 230, 0.3);
}

.btn-outline-light:hover {
    border-color: var(--text-light);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid rgba(18, 11, 8, 0.3);
}

.btn-outline-dark:hover {
    border-color: var(--text-dark);
}

.btn-outline-wine {
    background-color: transparent;
    color: var(--wine-2);
    border: 1px solid var(--wine-2);
}

.btn-outline-wine:hover {
    background-color: var(--wine-2);
    color: var(--bg-light);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.btn-outline-gold:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

/* Header */
.site-header {
    background-color: #e7d8b1; /* Color exacto extraído del logo JPEG para fusión perfecta */
    color: var(--text-dark);
    padding: 5px 0; /* Padding vertical reducido para hacer el header más delgado */
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo-container {
    display: flex;
    align-items: center;
}

.main-logo-img {
    height: 80px; /* Reducido para evitar un header demasiado grueso */
    width: auto;
    object-fit: contain;
    transform: scale(1.45); /* Aumenta el tamaño visualmente un 45% sin empujar el header */
    transform-origin: left center; /* Asegura que crezca hacia la derecha y no se salga del margen izquierdo */
}

.nav-links {
    display: flex;
    gap: 50px; /* Aumentado para distribuir mejor los 4 enlaces restantes */
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--accent-red);
}

/* Section Header (Small title with squiggles) */
.section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.section-subtitle::before, .section-subtitle::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 12px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 2 6 Q 10 14, 20 6 T 34 6' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='36' cy='6' r='2' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 2 6 Q 10 14, 20 6 T 34 6' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='36' cy='6' r='2' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    opacity: 0.8;
}

.section-subtitle::after {
    transform: scaleX(-1);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: 75%; /* Que la imagen ocupe más espacio hacia la izquierda */
    background-position: right center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: background-image 0.8s ease-in-out;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Difuminado solo en la primera cuarta parte (25%) y transición hasta el 60% */
    background: linear-gradient(90deg, var(--bg-dark) 0%, var(--bg-dark) 25%, rgba(26,20,16,0) 60%);
    z-index: 1;
    pointer-events: none;
}

.hero-corn-decor {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 55vh; 
    max-height: 400px;
    width: 45vw; 
    max-width: 380px;
    z-index: 2;
    opacity: 0.15;
    pointer-events: none;
    /* Difuminar los bordes para fundirlo con la oscuridad */
    -webkit-mask-image: radial-gradient(ellipse at bottom left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(ellipse at bottom left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

.hero-corn-decor img {
    height: 100%;
    width: 100%;
    object-fit: contain; /* Nunca se corta */
    object-position: bottom left; /* Anclado a la esquina inferior izquierda */
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 500px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 40px;
}

.hero-controls {
    margin-top: 80px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dot {
    width: 30px;
    height: 2px;
    background-color: rgba(244, 238, 230, 0.3);
}

.dot.active {
    background-color: var(--accent-red);
}

.slider-arrows {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: calc(100% - 80px);
    pointer-events: none;
}

.arrow-btn {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(244, 238, 230, 0.3);
    background: transparent;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.arrow-btn:hover {
    border-color: var(--text-light);
}

/* Esencia Section */
.esencia {
    position: relative;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow: hidden;
    padding-top: 60px;
    padding-bottom: 60px;
}

.esencia-corn-bg {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 90vh; /* Altura máxima basada en la pantalla */
    max-height: 95%; /* Nunca más alto que la sección */
    width: 80vw; /* Ancho en móviles */
    max-width: 550px; /* Ancho máximo en escritorio */
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

.esencia-corn-bg img {
    height: 100%;
    width: 100%;
    object-fit: contain; /* Garantiza que la imagen encaje completa sin cortarse */
    object-position: left center;
}

.esencia .container {
    position: relative;
    z-index: 2;
}

.esencia .section-subtitle {
    color: var(--accent-red);
}

.esencia-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.esencia-content h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 30px;
}

.esencia-content p {
    color: var(--text-muted-light);
    margin-bottom: 40px;
    font-size: 1rem;
}

.esencia-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    text-align: center;
}

.feature-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 120%; /* Aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.feature-img-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border: 1px solid var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-red);
}

.feature-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 20px;
    font-family: var(--font-sans);
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-muted-light);
}

/* Platos Section */
.platos {
    background-color: var(--bg-dark-secondary);
    padding-top: 30px;
    padding-bottom: 30px;
}

.platos-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.platos h2 {
    font-size: 2.8rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
    color: var(--text-muted-dark);
}

.link-arrow:hover {
    color: var(--text-light);
}

.platos-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.plato-card {
    background-color: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.plato-card:hover {
    background-color: rgba(255,255,255,0.05);
    transform: translateY(-5px);
}

.plato-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

.plato-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.plato-desc {
    font-size: 0.85rem;
    color: var(--text-muted-dark);
}

/* Biblioteca Section */
.biblioteca {
    position: relative;
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 60px 0;
    overflow: hidden;
}

.biblio-corn-left, .biblio-corn-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 140%;
    width: 25vw;
    max-width: 200px;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

.biblio-corn-left {
    left: -5%;
}

.biblio-corn-right {
    right: -5%;
    transform: translateY(-50%) scaleX(-1);
}

.biblio-corn-left img, .biblio-corn-right img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.biblioteca .container {
    position: relative;
    z-index: 2;
}

.biblioteca .section-subtitle {
    color: var(--accent-gold);
}

.biblioteca h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.biblioteca .link-arrow {
    color: var(--accent-red);
    font-weight: 600;
}

.biblioteca .link-arrow:hover {
    color: var(--wine-2);
}

@media (min-width: 992px) {
    .biblioteca .container {
        display: flex;
        align-items: center;
        gap: 50px;
    }
    
    .biblioteca-header {
        flex: 0 0 25%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0;
    }
    
    .biblioteca-grid {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .biblioteca-header {
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .biblioteca-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.biblio-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 280px;
}

.biblio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.biblio-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--text-light);
}

.biblio-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.biblio-title {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.biblio-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Visitanos Section */
.visitanos {
    position: relative;
    background-color: var(--bg-dark);
    padding: 40px 0;
}

.visitanos-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.2fr;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.visitanos-info {
    padding: 30px 40px 30px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visitanos-info h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.visitanos-info p {
    color: var(--text-muted-dark);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.visitanos-map {
    position: relative;
    background-color: var(--bg-dark);
}

.visitanos-map::before {
    content: '';
    position: absolute;
    inset: 0;
    /* 1. Multiply cream with the map: White becomes cream, Black stays black */
    background-color: var(--cream);
    background-image: url('../images/20.png');
    background-position: center;
    background-size: cover;
    background-blend-mode: multiply;
    /* 2. Screen the result against the parent's dark background: Black becomes dark, cream stays cream */
    mix-blend-mode: screen;
}

.map-pin {
    position: absolute;
    top: 54%;
    left: 72.5%;
    transform: translate(-50%, -100%);
    color: var(--accent-gold);
    animation: bouncePin 2s infinite;
}

@keyframes bouncePin {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, -100%); }
    40% { transform: translate(-50%, -115%); }
    60% { transform: translate(-50%, -105%); }
}

.visitanos-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 0 30px 40px;
    position: relative;
}

.contact-box {
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(18,11,8,0.5);
    z-index: 2;
}

.visitanos-agave-decor {
    position: absolute;
    right: -50px;
    bottom: -20px;
    height: 120%;
    pointer-events: none;
    z-index: 1;
}

.visitanos-agave-decor img {
    height: 100%;
    object-fit: contain;
    opacity: 0.8;
}

.contact-block {
    display: flex;
    gap: 15px;
}

.contact-icon {
    color: var(--accent-gold);
}

.contact-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted-dark);
    margin-bottom: 5px;
    font-family: var(--font-sans);
}

.contact-detail {
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    color: var(--accent-gold);
}

/* Footer CTA */
.footer-cta {
    background-color: var(--accent-red);
    padding: 15px 0;
    position: relative;
}

.footer-cta-corn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 200px; /* Altura fija grande para que no dependa de lo delgada que es la sección */
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}

.footer-cta-corn img {
    height: 100%;
    object-fit: contain;
}

.footer-cta-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.footer-cta-center {
    text-align: left;
}

.footer-cta-right {
    text-align: right;
}

.footer-cta h2 {
    font-size: 1.8rem;
    margin-bottom: -5px;
}

.footer-cta p {
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 0;
}

.footer-cta .btn {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    border-color: var(--accent-gold);
}

.footer-cta .btn:hover {
    background-color: #d1b48f;
}

/* Copyright */
.copyright {
    background-color: var(--bg-dark);
    padding: 20px 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .esencia-grid, .visitanos-wrapper {
        grid-template-columns: 1fr;
    }
    .hero { background-size: cover; }
    .hero::before { background: rgba(18,11,8,0.7); }
    .platos-carousel { grid-template-columns: repeat(2, 1fr); }
    .biblioteca-grid { grid-template-columns: 1fr; }
    .visitanos-map { min-height: 300px; border-left: none; border-right: none; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
    .visitanos-contact { padding: 40px 0; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .esencia-features { grid-template-columns: 1fr; }
    .platos-carousel { grid-template-columns: 1fr; }
    .platos-header, .biblioteca-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .footer-cta-content { grid-template-columns: 1fr; gap: 15px; text-align: center; }
    .footer-cta-center, .footer-cta-right { text-align: center; }
}

/* Image Modal / Lightbox */
.image-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18,11,8,0.9); /* Dark background matching theme */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.6);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* =========================================
   RESERVAS (3 SECCIONES)
========================================= */
.reservas-body {
    background-color: var(--bg-light); /* Fondo claro como en la imagen de referencia */
    color: var(--ink);
}

.reservas-wrapper {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.reserva-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 750px;
    margin: 0 auto;
}

.r-form-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reserva-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Sección 1: Info */
.r-img-container {
    margin: -30px -30px 20px -30px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    height: 250px;
}
.r-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.r-content h2 {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    color: var(--wine-2);
    margin-bottom: 10px;
    line-height: 1.1;
}
.r-desc {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 25px;
}
.r-steps {
    list-style: none;
    padding: 0;
}
.r-steps li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}
.step-icon {
    background: var(--cream);
    padding: 10px;
    border-radius: 12px;
    font-size: 1.2rem;
}
.step-text strong {
    display: block;
    color: var(--ink);
    font-weight: 600;
}
.step-text span {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Formularios */
.r-calendar-section h3, .r-contact-section h3 {
    font-family: var(--font-serif);
    color: var(--wine-2);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.r-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.reserva-input {
    width: 100%;
    padding: 12px 15px;
    background-color: #f9f6ef;
    border: 1px solid #e5dcc5;
    border-radius: 10px;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}
.reserva-input:focus {
    outline: none;
    border-color: var(--gold);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(199, 155, 73, 0.2);
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper .reserva-input {
    padding-right: 40px;
}

.input-icon {
    position: absolute;
    right: 15px;
    color: var(--muted);
    pointer-events: none;
}

.r-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background-color: var(--muted);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}
.r-btn:disabled {
    background-color: #d1c8c1;
    color: #8c837b;
    cursor: not-allowed;
    opacity: 0.7;
}
.r-btn.active {
    background-color: var(--wine);
    cursor: pointer;
}
.r-btn.active:hover {
    background-color: var(--wine-2);
    transform: translateY(-2px);
}



/* =========================================
   ANIMACIONES
========================================= */
.r-submit-container {
    position: relative;
    min-height: 60px;
}

.r-loading, .r-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Sartén animado (Loader) */
.pan-loader {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}
.loader-pan {
    position: absolute;
    bottom: 20%;
    left: 20%;
    width: 50%;
    height: 15%;
    background: var(--wine-2);
    border-radius: 0 0 20px 20px;
    transform-origin: right bottom;
    animation: pan-toss 1.5s infinite ease-in-out;
}
.loader-handle {
    position: absolute;
    bottom: 25%;
    right: 5%;
    width: 35%;
    height: 5%;
    background: var(--ink);
    border-radius: 10px;
    transform-origin: left center;
    animation: handle-toss 1.5s infinite ease-in-out;
}
@keyframes pan-toss {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-15deg); }
}
@keyframes handle-toss {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-15deg); }
}

/* Checkmark animado (Success) */
.success-checkmark {
    width: 60px;
    height: 60px;
    margin: 0 auto;
}
.check-icon {
    width: 60px;
    height: 60px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #4CAF50;
}
.icon-line {
    height: 5px;
    background-color: #4CAF50;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}
.icon-line.line-tip {
    top: 32px;
    left: 10px;
    width: 20px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}
.icon-line.line-long {
    top: 26px;
    right: 12px;
    width: 35px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}
@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 30px; left: -5px; top: 26px; }
    84% { width: 12px; left: 13px; top: 34px; }
    100% { width: 20px; left: 10px; top: 32px; }
}
@keyframes icon-line-long {
    0% { width: 0; right: 30px; top: 35px; }
    65% { width: 0; right: 30px; top: 35px; }
    84% { width: 38px; right: 0px; top: 22px; }
    100% { width: 35px; right: 12px; top: 26px; }
}

.close-modal {
    position: absolute;
    top: 20px;
    left: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 10000;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-red);
    text-decoration: none;
}
