/*
Theme Name: Soprole 2026
Theme URI: https://github.com/soprole/soprole-2026
Author: Metaversia
Author URI: https://metaversia.cl
Description: Tema de WordPress personalizado para Soprole 2026.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soprole-2026
*/

.nav-links a.next, .nav-links a.prev{ padding: 10px 20px !important; }

/* Espaciado para imágenes flotantes a la izquierda */
img.alignleft, .wp-block-image.alignleft {
  float: left;
  margin: 0 1.5em 1.5em 0; /* Separa por la derecha y por abajo */
}

/* Espaciado para imágenes flotantes a la derecha */
img.alignright, .wp-block-image.alignright {
  float: right;
  margin: 0 0 1.5em 1.5em; /* Separa por la izquierda y por abajo */
}

/* Adaptación para celulares (ancho menor a 600px) */
@media (max-width: 600px) {
  img.alignleft, img.alignright, 
  .wp-block-image.alignleft, .wp-block-image.alignright {
    float: none;
    display: block;
    margin: 1em auto;
    max-width: 100%;
  }
}

.texto-proximos-eventos p { color: white !important; }

/* CSS Styles for Contact Form 7 within the modal */
#history-modal .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
}

#history-modal input[type="text"],
#history-modal input[type="email"],
#history-modal select,
#history-modal textarea {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    background-color: rgba(249, 250, 251, 0.5) !important;
    color: #111827 !important;
    transition: all 0.2s ease-in-out !important;
}

#history-modal input[type="text"]:focus,
#history-modal input[type="email"]:focus,
#history-modal select:focus,
#history-modal textarea:focus {
    outline: none !important;
    border-color: transparent !important;
    box-shadow: 0 0 0 2px #134294 !important;
    background-color: #ffffff !important;
}

#history-modal select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.25rem !important;
    padding-right: 2.5rem !important;
}

#history-modal .wpcf7-submit {
    width: 100% !important;
    padding: 1rem !important;
    background-color: #134294 !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 0.75rem !important;
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
}

#history-modal .wpcf7-submit:hover {
    background-color: #0f3475 !important;
    transform: scale(1.01);
}

#history-modal .wpcf7-form-control-wrap.foto-historia,
#history-modal .wpcf7-form-control-wrap.foto-historia input {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

#history-modal .wpcf7-not-valid-tip {
    color: #e5363b !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    margin-top: 0.25rem !important;
}

#history-modal .wpcf7-response-output {
    margin: 1rem 0 0 0 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-align: center !important;
}

#history-modal .wpcf7-mail-sent-ok {
    background-color: #ecfdf5 !important;
    border: 1px solid #10b981 !important;
    color: #065f46 !important;
}

#history-modal .wpcf7-validation-errors,
#history-modal .wpcf7-acceptance-missing {
    background-color: #fef2f2 !important;
    border: 1px solid #ef4444 !important;
    color: #991b1b !important;
}