/* ================================================
   TARIFAS - CSS UNIFICADO Y RESPONSIVO
   ================================================ */

/* ── BASE ──────────────────────────────────────── */

body {
    font-family: 'Press Start 2P', monospace;
    margin: 0;
    padding: 0;
    background: #1a1020;
    color: #c7c6c6;
}

/* ── NAVBAR LOGOS ──────────────────────────────── */

.nav-container img[alt="logo de gonoz"] {
    height: clamp(28px, 5vw, 56px); /* escala entre 28px y 56px según el ancho */
    width: auto;                     /* mantiene proporción, sin deformarse */
    object-fit: contain;
    transition: height 0.2s;
}

.nav-container img[alt="Gonoz Letras"] {
    height: clamp(20px, 3.5vw, 42px);
    width: auto;
    object-fit: contain;
    margin: 0 clamp(4px, 1vw, 16px);
    transition: height 0.2s;
}

/* ── HEADER ────────────────────────────────────── */

.tarifas-header {
    background: linear-gradient(135deg, #2a1d33 0%, #6c3483 60%, #a569bd 100%);
    color: #fff;
    padding: 6rem 1.5rem 2.5rem;
    text-align: center;
    border-bottom: 3px solid #a569bd;
}

.tarifas-header h1 {
    margin: 0 0 1rem;
    font-size: clamp(0.9rem, 3vw, 1.8rem); /* nunca se desborda */
    letter-spacing: 2px;
    line-height: 1.6;
    word-break: break-word;
}

.tarifas-header p {
    margin: 0;
    font-size: clamp(0.65rem, 1.8vw, 1rem);
    line-height: 1.8;
    opacity: 0.9;
}

/* ── SECCIONES ─────────────────────────────────── */

.section {
    padding: 60px 15px;
    position: relative;
    border-top: 1px solid #7c6d80;
}

.section:nth-child(even) {
    background-color: #0d0a12;
}

.section:nth-child(odd) {
    background-color: #1a1020;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
}

/* ── CONTAINER ─────────────────────────────────── */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 35px 30px;
    background: #251830;
    border: 3px solid #7c6d80;
    box-shadow: 5px 5px 0 #000;
    position: relative;
    box-sizing: border-box;
}

.container::before {
    content: '';
    position: absolute;
    top: -8px; left: -8px;
    right: -8px; bottom: -8px;
    border: 1px solid #7c6d80;
    pointer-events: none;
}

.container h2 {
    font-size: clamp(0.8rem, 2.5vw, 1.3rem); /* crece y encoge con la pantalla */
    margin: 0 0 0.8rem;
    color: #e0d0f0;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 1rem;
    border-bottom: 2px solid #7c6d80;
    line-height: 1.5;
    word-break: break-word;
}

.container h2::before {
    content: '◆ ';
    color: #a569bd;
}

/* Descripción introductoria de cada sección */
.seccion-desc {
    font-size: clamp(0.6rem, 1.5vw, 0.85rem);
    color: #b0a0c0;
    line-height: 1.9;
    margin: 0 0 2rem;
    padding: 1rem 1.2rem;
    border-left: 3px solid #a569bd;
    background: rgba(165, 105, 189, 0.07);
    word-break: break-word;
}

/* ── TARIFA CARD ───────────────────────────────── */

.tarifa-card {
    background: #2e1f3e;
    border: 3px solid #7c6d80;
    box-shadow: 4px 4px 0 #000;
    padding: 1.8rem 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    color: #c7c6c6;
    position: relative;
    overflow: visible; /* sin cortes */
    margin: 0 0 2rem;
    box-sizing: border-box;
}

.tarifa-card:hover {
    transform: translateY(-4px);
    box-shadow: 6px 8px 0 #000;
}

.tarifa-card.special {
    background: #1e1030;
    border-color: #a569bd;
}

/* Cabecera de la card: título + precio en fila */
.card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #4a2d6a;
}

.card-header h3 {
    font-size: clamp(0.78rem, 2.2vw, 1.15rem);
    color: #e8c4ff;
    margin: 0;
    font-weight: bold;
    line-height: 1.6;
    word-break: break-word;
    flex: 1 1 60%;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #000, 0 0 12px rgba(165, 105, 189, 0.4);
    position: relative;
    padding-left: 1rem;
}

.card-header h3::before {
    content: '►';
    position: absolute;
    left: 0;
    color: #a569bd;
    font-size: 0.7em;
    top: 50%;
    transform: translateY(-50%);
    animation: blink-arrow 1.2s step-end infinite;
}

@keyframes blink-arrow {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ── PRECIO ────────────────────────────────────── */

.precio {
    background: #3d1f55;
    color: #e0b0ff;
    padding: 0.3rem 0.9rem;
    font-size: clamp(0.6rem, 1.8vw, 0.9rem);
    font-weight: bold;
    border: 1.5px solid #a569bd;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block;
}

/* Precio pequeño dentro de opciones/extras */
.precio-extra {
    background: #3d1f55;
    color: #e0b0ff;
    padding: 0.15rem 0.6rem;
    font-size: clamp(0.55rem, 1.5vw, 0.8rem);
    font-weight: bold;
    border: 1px solid #a569bd;
    white-space: nowrap;
    display: inline-block;
    margin-left: 0.4rem;
    vertical-align: middle;
}

/* ── DESCRIPCIÓN DE CARD ───────────────────────── */

.card-desc {
    font-size: clamp(0.6rem, 1.5vw, 0.82rem);
    color: #b0a0c0;
    line-height: 1.9;
    margin: 0;
    word-break: break-word;
}

/* ── LISTAS ────────────────────────────────────── */

.tarifa-card ul {
    margin: 0 0 0.3rem 1.2rem;
    padding: 0;
    font-size: clamp(0.58rem, 1.5vw, 0.82rem);
    color: #c7c6c6;
    line-height: 2;
    word-break: break-word;
}

.tarifa-card li {
    margin-bottom: 0.2rem;
}

/* ── OPCIONES/EXTRAS ───────────────────────────── */

.opciones {
    background: #1e1228;
    padding: 1rem 1.2rem;
    font-size: clamp(0.58rem, 1.5vw, 0.82rem);
    color: #c7c6c6;
    border: 1.5px solid #6c3483;
    word-break: break-word;
    box-sizing: border-box;
}

.opciones strong {
    color: #d4a8f0;
    display: block;
    margin-bottom: 0.6rem;
}

.opciones ul {
    margin: 0 0 0 1rem;
    font-size: clamp(0.55rem, 1.4vw, 0.8rem);
    color: #b0a0c0;
    line-height: 2.2;
    list-style: none;
    padding: 0;
}

.opciones li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(124, 109, 128, 0.2);
}

.opciones li:last-child {
    border-bottom: none;
}

/* ── FOOTER ────────────────────────────────────── */

.tarifas-footer {
    background: #1a0d22;
    color: #b0a0c0;
    text-align: center;
    padding: 2.5rem 1.5rem;
    font-size: clamp(0.55rem, 1.5vw, 0.8rem);
    border-top: 3px solid #6c3483;
    line-height: 2;
}

/* ── BOTONES FLOTANTES ─────────────────────────── */

.contacto-flotante {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 999;
}

.btn-flotante {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.6rem, 1.4vw, 0.75rem); /* letra legible */
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.4rem;
    border: 3px solid;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    line-height: 1.5;
    white-space: nowrap;
}

/* Etiqueta SIEMPRE visible */
.btn-label {
    display: inline-block;
}

.btn-flotante:active {
    transform: translate(3px, 3px);
    box-shadow: none !important;
}

.btn-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

.btn-whatsapp {
    background: #1a3a1a;
    color: #5ddb6e;
    border-color: #5ddb6e;
    box-shadow: 4px 4px 0 #0a1a0a;
}

.btn-whatsapp:hover {
    background: #5ddb6e;
    color: #0a1a0a;
    box-shadow: 6px 6px 0 #0a1a0a;
    transform: translateY(-3px);
}

.btn-correo {
    background: #1a1a3a;
    color: #7090e0;
    border-color: #7090e0;
    box-shadow: 4px 4px 0 #0a0a1a;
}

.btn-correo:hover {
    background: #7090e0;
    color: #0a0a1a;
    box-shadow: 6px 6px 0 #0a0a1a;
    transform: translateY(-3px);
}

@media (max-width: 600px) {
    .contacto-flotante {
        bottom: 16px;
        right: 10px;
        gap: 0.6rem;
    }
    .btn-flotante {
        font-size: 0.6rem;
        padding: 0.7rem 1rem;
    }
}

/* ── RESPONSIVE ────────────────────────────────── */

@media (max-width: 900px) {
    .container {
        padding: 25px 15px;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 40px 8px;
    }
    .container {
        padding: 20px 10px;
        border-width: 2px;
    }
    .tarifa-card {
        padding: 1.2rem 0.9rem;
        margin: 0 0 1.5rem;
    }
    .card-header {
        flex-direction: column; /* título y precio en columna en móvil */
        align-items: flex-start;
        gap: 0.4rem;
    }
    .precio {
        align-self: flex-start;
    }
    .nav-container img[alt="logo de gonoz"] {
        height: 32px;
        max-width: 18vw;
    }
    .nav-container img[alt="Gonoz Letras"] {
        height: 22px;
        max-width: 30vw;
        min-width: 30px;
        margin: 0 4px;
    }
}

/* ── MODAL DE CONTACTO ─────────────────────────── */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-overlay.modal-visible {
    opacity: 1;
}

.modal-box {
    background: #251830;
    border: 3px solid #7c6d80;
    box-shadow: 6px 6px 0 #000, inset 0 0 0 3px #000, inset 0 0 0 6px #4a2d6a;
    padding: 2.5rem 2rem 2rem;
    width: 100%;
    max-width: 520px;
    position: relative;
    box-sizing: border-box;
    transform: translateY(20px);
    transition: transform 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.modal-visible .modal-box {
    transform: translateY(0);
}

.modal-cerrar {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: #3d1f55;
    border: 2px solid #7c6d80;
    color: #c7c6c6;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    box-shadow: 2px 2px 0 #000;
    transition: background 0.1s;
}

.modal-cerrar:hover {
    background: #7c6d80;
    color: #000;
}

.modal-icono {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.modal-titulo {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.7rem, 2vw, 1rem);
    color: #e8c4ff;
    text-align: center;
    margin: 0 0 0.6rem;
    line-height: 1.6;
    text-shadow: 2px 2px 0 #000;
}

.modal-desc {
    font-size: clamp(0.55rem, 1.3vw, 0.72rem);
    color: #b0a0c0;
    text-align: center;
    line-height: 1.9;
    margin: 0 0 1.5rem;
}

/* Campos del formulario */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.campo label {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.52rem, 1.2vw, 0.65rem);
    color: #d4a8f0;
    line-height: 1.6;
}

.campo input,
.campo select,
.campo textarea {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.52rem, 1.2vw, 0.65rem);
    background: #1a1020;
    color: #c7c6c6;
    border: 2px solid #7c6d80;
    padding: 0.7rem 0.9rem;
    box-shadow: inset 2px 2px 0 #000;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.8;
    transition: border-color 0.15s;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    border-color: #a569bd;
    box-shadow: inset 2px 2px 0 #000, 0 0 0 2px rgba(165, 105, 189, 0.3);
}

.campo select option {
    background: #1a1020;
    color: #c7c6c6;
}

.campo textarea {
    resize: vertical;
    min-height: 90px;
}

/* Error */
.modal-error {
    font-size: clamp(0.52rem, 1.2vw, 0.65rem);
    color: #ff6b6b;
    line-height: 1.8;
    margin: 0;
}

/* Botón enviar */
.modal-btn-enviar {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.6rem, 1.4vw, 0.75rem);
    padding: 0.9rem 1.2rem;
    border: 3px solid;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.btn-enviar-whatsapp {
    background: #1a3a1a;
    color: #5ddb6e;
    border-color: #5ddb6e;
    box-shadow: 4px 4px 0 #0a1a0a;
}

.btn-enviar-whatsapp:hover {
    background: #5ddb6e;
    color: #0a1a0a;
    box-shadow: 2px 2px 0 #0a1a0a;
    transform: translate(2px, 2px);
}

.btn-enviar-gmail {
    background: #1a1a3a;
    color: #7090e0;
    border-color: #7090e0;
    box-shadow: 4px 4px 0 #0a0a1a;
}

.btn-enviar-gmail:hover {
    background: #7090e0;
    color: #0a0a1a;
    box-shadow: 2px 2px 0 #0a0a1a;
    transform: translate(2px, 2px);
}

@media (max-width: 500px) {
    .modal-box {
        padding: 2rem 1rem 1.5rem;
    }
}