/* ============================================================
   MODAL "AGENDAR UNA CITA" - estilos
   Pega este bloque al final de css/style2.css (o enlázalo aparte)
   ============================================================ */

.cita-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.55);
}

.cita-modal-content {
    background-color: #fdfdfd;
    margin: 6% auto;
    padding: 2.5em 2em;
    border-radius: 14px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    font-family: 'Inder', sans-serif;
}

.cita-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.cita-close:hover {
    color: #333;
}

.cita-title {
    font-weight: normal;
    font-size: 1.3em;
    margin-bottom: 1.4em;
    color: #222;
}

.cita-highlight {
    color: #2f7dd1;
}

.cita-field {
    margin-bottom: 1.2em;
    text-align: left;
}

.cita-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #111;
    font-size: 0.95em;
}

.cita-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c9d2e0;
    border-radius: 8px;
    font-size: 0.95em;
    font-family: 'Inder', sans-serif;
    background-color: #fff;
}

.cita-field input::placeholder {
    color: #a8b0bd;
}

.cita-field input:focus {
    outline: none;
    border-color: #3E7633;
    box-shadow: 0 0 0 3px rgba(62, 118, 51, 0.15);
}

.cita-field input.cita-invalid {
    border-color: #d9534f;
}

/* Honeypot: oculto para humanos, visible para bots */
.cita-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.cita-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 1.4em;
    text-align: left;
    font-size: 0.9em;
    color: #333;
}

.cita-checkbox input {
    margin-top: 4px;
}

.cita-checkbox a {
    color: #333;
    text-decoration: underline;
}

.cita-submit-btn {
    width: 100%;
    background-color: #2f7dd1;
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 1.05em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.cita-submit-btn:hover {
    background-color: #2568b3;
}

.cita-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cita-mensaje {
    margin-bottom: 1em;
    font-size: 0.9em;
    text-align: left;
}

.cita-mensaje.exito {
    color: #2e7d32;
}

.cita-mensaje.error {
    color: #c62828;
}

@media screen and (max-width: 458px) {
    .cita-modal-content {
        margin: 20% auto;
        padding: 2em 1.4em;
    }
}

/* ============================================================
   BOTÓN "¿DESEAS AGENDAR UNA CITA?" en la sección de horarios
   ============================================================ */

.schedule-content {
    justify-content: center !important;
    align-items: center;
    padding: 0 3em;
    gap: 60px;
}

/* Contenedor del logo + horario */
.schedule-info-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Contenedor del botón de cita */
.schedule-cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cita-cta-btn {
    position: relative;
    background: linear-gradient(135deg, #3E7633, #4f9640);
    color: #ffffff;
    border: none;
    padding: 16px 28px;
    font-size: 1.15em;
    font-family: 'Inder', sans-serif;
    font-weight: normal;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(62, 118, 51, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: cita-pulse 2.4s ease-in-out infinite;
}

.cita-cta-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(62, 118, 51, 0.55);
    animation-play-state: paused;
}

@keyframes cita-pulse {
    0%   { box-shadow: 0 4px 14px rgba(62, 118, 51, 0.4), 0 0 0 0 rgba(62, 118, 51, 0.45); }
    70%  { box-shadow: 0 4px 14px rgba(62, 118, 51, 0.4), 0 0 0 14px rgba(62, 118, 51, 0); }
    100% { box-shadow: 0 4px 14px rgba(62, 118, 51, 0.4), 0 0 0 0 rgba(62, 118, 51, 0); }
}

@media (max-width: 768px) {
    .schedule-content {
        flex-direction: column;
        justify-content: center !important;
        padding: 0 1em;
    }

    .schedule-info-box {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

    .schedule-cta {
        width: 100%;
        margin-top: 0.5em;
    }

    .cita-cta-btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .schedule-info-box {
        flex-direction: column;
        gap: 8px;
        padding: 1em;
    }
}

/* ============================================================
   TÍTULO "Contáctanos para una visita guiada" convertido en botón
   Fondo blanco, letra y sombra verdes, abre el modal de cita.
   No se toca font-size: conserva el tamaño original del h1.
   ============================================================ */

.contacto-cta-btn {
    display: block;
    width: fit-content;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    background-color: #ffffff;
    color: #3E7633;
    padding: 0.5em 1em;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(62, 118, 51, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contacto-cta-btn:hover,
.contacto-cta-btn:focus-visible {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(62, 118, 51, 0.55);
    outline: none;
}

@media (max-width: 480px) {
    .contacto-cta-btn {
        padding: 0.45em 0.8em;
    }
}

/* ============================================================
   BOTÓN DE WHATSAPP - esquina inferior derecha, responsivo
   (sobreescribe la posición original definida en style2.css)
   ============================================================ */

.whatsapp-button {
    position: fixed;
    top: auto !important;
    bottom: 24px;
    right: 24px;
    transform: none !important;
    z-index: 999;
}

@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 16px;
        right: 16px;
        padding: 14px;
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        bottom: 12px;
        right: 12px;
        padding: 12px;
        font-size: 1.5em;
    }
}

/* ============================================================
   CAJA DE PRECIO (sección Descripción)
   ============================================================ */

.price-box-wrapper {
    text-align: center;
    width: 100%;
}

.price-box {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 0.4em 0;
    text-align: left;
}

.price-box-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #3E7633;
    color: #ffffff;
    font-size: 1.3em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-box-info {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.price-box-label {
    font-size: 0.8em;
    color: #777;
}

.price-box-value {
    font-size: 1.35em;
    font-weight: bold;
    color: #1a1a1a;
}

.price-box-label-secondary {
    margin-top: 6px;
}

.price-box-value-secondary {
    font-size: 1.05em;
    font-weight: bold;
    color: #3E7633;
}

/* ============================================================
   BOTÓN DESPLEGABLE "Ver condiciones y precios"
   ============================================================ */

.price-toggle-btn {
    background: none;
    border: none;
    color: #3E7633;
    font-family: 'Inder', sans-serif;
    font-size: 0.95em;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.price-toggle-btn:hover {
    color: #2c5a25;
}

.price-toggle-icon {
    font-size: 0.75em;
    transition: transform 0.25s ease;
}

.price-toggle-btn[aria-expanded="true"] .price-toggle-icon {
    transform: rotate(180deg);
}

@media (max-width: 480px) {
    .price-box {
        padding: 0.4em 0;
    }

    .price-box-value {
        font-size: 1.15em;
    }
}

/* ============================================================
   IMAGEN PRINCIPAL DE LA SECCIÓN "DESCRIPCIÓN" (horizontal)
   ============================================================ */

#arbolimg img.custom-image {
    width: 100%;
    max-width: 520px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
