/* ===== Fuentes premium ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Lora:ital@0;1&display=swap');

/* ===== Reset y base ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Lora', serif;
    background: linear-gradient(145deg, #0c0a1a, #1a142a);
    color: #f8f6f0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Estilo premium ===== */
.main-box {
    background: rgba(20, 15, 35, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 50px 30px;
    margin: 40px auto 50px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(212, 175, 55, 0.08);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.main-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8em;
    font-weight: 700;
    color: #e6c229;
    margin: 0 0 15px;
    text-shadow: 0 0 15px rgba(230, 194, 41, 0.2);
    line-height: 1.2;
    text-align: center;
}

p.subtitle {
    font-size: 1.3em;
    margin: 0 0 25px;
    color: #e0d8c0;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-style: italic;
}

.micro-commitment {
    font-size: 1.05em;
    color: #c9b88a;
    margin: 10px 0 20px;
    font-style: normal;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cartas-entregadas {
    font-size: 1.05em;
    color: #a9a07a;
    margin: 10px 0 15px;
    font-style: italic;
    text-align: center;
}

.price-section {
    margin: 25px 0 35px;
    text-align: center;
}

.value-real {
    color: #b8a98a;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.strikethrough {
    text-decoration: line-through;
    opacity: 0.7;
}

.price-badge {
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    margin: 10px 0;
    font-size: 1.4em;
    border: 1px solid rgba(212, 175, 55, 0.2);
    letter-spacing: 0.5px;
    animation: glow 2s ease-in-out infinite alternate;
    text-align: center;
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
    to { box-shadow: 0 0 15px rgba(212, 175, 55, 0.8); }
}

.availability {
    font-size: 1.05em;
    color: #a9a07a;
    margin-top: 12px;
    font-style: italic;
    text-align: center;
}

.availability-justification {
    font-size: 0.95em;
    color: #9a8f6f;
    margin-top: 6px;
    font-style: italic;
    text-align: center;
}

.preview {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    margin: 30px auto 40px;
    display: block;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: transform 0.3s ease;
}

.preview:hover {
    transform: scale(1.02);
}

.form-group {
    margin-bottom: 24px;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #e6c229;
    font-weight: 500;
    font-family: 'Cormorant Garamond', serif;
    text-align: center;
}

input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(10, 8, 20, 0.7);
    color: #f8f6f0;
    font-family: 'Lora', serif;
    font-size: 1.05em;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cta-button,
.gift-button {
    background: linear-gradient(135deg, #e6c229, #b8860b);
    color: #1a142a;
    border: none;
    padding: 16px 40px;
    font-size: 1.4em;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.3);
    letter-spacing: 1px;
    margin: 25px auto 15px;
    display: block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gift-button {
    padding: 14px 30px;
    font-size: 1.2em;
    margin: 20px auto;
}

.cta-button::before,
.gift-button::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover::before,
.gift-button:hover::before {
    opacity: 1;
}

.cta-button:hover,
.gift-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(184, 134, 11, 0.5);
}

.cta-button:active,
.gift-button:active {
    transform: translateY(0);
}

.guarantee {
    font-size: 0.95em;
    color: #b8a98a;
    margin-top: 20px;
    font-style: italic;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

/* ===== Secciones adicionales ===== */
h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2em;
    color: #e6c229;
    margin: 60px auto 30px;
    text-align: center;
    position: relative;
    margin-top: 60px;
    margin-bottom: 30px;
}

h2::after {
    content: "✧";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    color: #d4af37;
    font-size: 1.4em;
    z-index: 1;
    margin-top: 10px;
}

.testimonials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    margin-top: 50px;
}

.testimonial {
    background: rgba(25, 20, 40, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 16px;
    padding: 30px;
    max-width: 380px;
    text-align: left;
    position: relative;
}

.testimonial::before {
    content: """;
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4em;
    color: rgba(212, 175, 55, 0.1);
    font-family: serif;
}

.testimonial p {
    font-size: 1.05em;
    font-style: italic;
    margin: 0;
    position: relative;
    z-index: 1;
}

.testimonial .author {
    font-style: normal;
    text-align: right;
    font-weight: 600;
    margin-top: 15px;
    color: #e6c229;
    font-family: 'Cormorant Garamond', serif;
}

.testimonial-date {
    font-size: 0.85em;
    color: #b8a98a;
    text-align: right;
    margin-top: 8px;
    font-style: italic;
}

.faq {
    max-width: 700px;
    margin: 50px auto 50px;
    text-align: left;
    background: rgba(25, 20, 40, 0.4);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.faq-item {
    margin-bottom: 22px;
}

.faq-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4em;
    color: #e6c229;
    margin-bottom: 10px;
}

.faq-item p {
    margin: 0;
    color: #e0d8c0;
    line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    h1 { 
        font-size: 1.9em; 
        line-height: 1.3;
    }
    p.subtitle {
        font-size: 1.15em;
    }
    h2 { 
        font-size: 1.9em; 
        margin: 50px auto 25px;
    }
    .main-box { 
        padding: 30px 15px; 
    }
    .cta-button, .gift-button { 
        font-size: 1.25em; 
        padding: 14px 30px; 
        width: 90%;
        margin: 20px auto 10px;
    }
    .price-badge { 
        font-size: 1.2em; 
        padding: 10px 20px; 
    }
    .form-group {
        padding: 0 10px;
    }
    .preview {
        margin: 25px auto 35px;
        max-height: 250px;
    }
    .testimonial {
        padding: 25px;
        max-width: 100%;
    }
    .value-real, .availability, .cartas-entregadas, .availability-justification {
        font-size: 1em;
    }
    .faq-item p {
        font-size: 0.95em;
    }
}

/* ===== Hidden ===== */
.hidden { 
    display: none !important; 
}

/* Estilo para textarea - igual que input */
textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(10, 8, 20, 0.7);
  color: #f8f6f0;
  font-family: 'Lora', serif;
  font-size: 1.05em;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  resize: vertical; /* permite ajustar altura */
  min-height: 100px;
}

/* Para que el placeholder también tenga el color correcto */
textarea::placeholder {
  color: #e0d8c0;
  opacity: 0.7;
  font-style: italic;
}
/* --- ESTILOS DE AUTENTICACIÓN (AÑADIR AL FINAL DEL ARCHIVO) --- */

/* --- ESTILOS DE AUTENTICACIÓN CORREGIDOS (AÑADIR AL FINAL) --- */

/* 1. Hacemos TU cabecera fija, pero de forma específica para no romperla */
.container > header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.85); /* Fondo semitransparente */
    backdrop-filter: blur(8px);
    padding: 10px 5%;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}

/* 2. Convertimos tu header en un contenedor flexible para que el usuario se alinee a la derecha */
.container > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 3. Ajustamos el main para que no quede debajo de la cabecera fija */
main {
    padding-top: 90px; /* Ajusta este valor si es necesario */
}

/* 4. Estilos para el nuevo div del usuario */
#user-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 0.9em;
}

#user-header-info button {
    background: none;
    border: 1px solid #f0c462; /* Usamos tu color dorado */
    color: #f0c462;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-weight: bold;
}

#user-header-info button:hover {
    background-color: #f0c462;
    color: black;
}

/* --- ESTILOS DEL MODAL (ESTOS SÍ SON CORRECTOS, DÉJALOS) --- */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.auth-modal-content {
    background-color: #121212;
    color: #e0e0e0;
    padding: 40px;
    border: 1px solid #444;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.7);
    position: relative;
    text-align: center;
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover { color: white; }

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid #dadce0;
    border-radius: 5px;
    background-color: white;
    color: #3c4043;
    font-family: sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.google-btn:hover { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
.google-btn svg { margin-right: 10px; }

.auth-separator {
    margin: 25px 0;
    position: relative;
    text-align: center;
}

.auth-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #444;
}

.auth-separator span {
    background-color: #121212;
    padding: 0 15px;
    color: #888;
    position: relative;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin: 8px 0 20px 0;
    display: inline-block;
    border: 1px solid #555;
    border-radius: 5px;
    box-sizing: border-box;
    background: #2a2a2a;
    color: white;
}

.auth-form button {
    background-color: #f0c462;
    color: black;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.auth-form button:hover { background-color: #d4af37; }
.error-message { color: #ff4d4d; font-size: 0.9em; margin-top: -15px; margin-bottom: 10px; }
