/*
Theme Name: ICEO Theme
Theme URI: https://iceo.cl
Description: Tema de WordPress creado a partir de la guía HTML de ICEO Clínica Dental.
Version: 1.0
Author: Rodolfo Aranguiz en Metaversia
Author URI: https://metaversia.cl
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iceo-theme
*/

.submenu-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}
.submenu-dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 24px;
    background: transparent;
}
.group:hover .submenu-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

@media (min-width: 768px) {
    .blog-grid {
        display: grid !important;
        grid-template-columns: 2fr 1fr !important;
        gap: 3rem !important;
    }
}

/* Pagination Styling */
.pagination {
    margin-top: 3rem;
}
.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #555555;
    background-color: #ffffff;
    border: 1px solid #E8E8E8;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}
.pagination a.page-numbers:hover {
    color: #10302F;
    border-color: #10302F;
    background-color: #F5F5F5;
}
.pagination .page-numbers.current {
    background-color: #10302F;
    color: #ffffff;
    border-color: #10302F;
}
.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #8A8A8A;
}

/* Contact Form 7 - Bloque Reserva */
.cf7-reserva-wrapper .wpcf7-form {
    display: flex;
    flex-direction: column;
}
.cf7-reserva-wrapper .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
    margin-bottom: 16px !important; /* Espacio entre cada campo */
}
.cf7-reserva-wrapper input[type="text"],
.cf7-reserva-wrapper input[type="email"],
.cf7-reserva-wrapper input[type="tel"],
.cf7-reserva-wrapper textarea {
    background-color: #ffffff !important;
    border: 1px solid #E8E8E8 !important;
    color: #1A1A1A !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    width: 100% !important;
    outline: none !important;
    transition: all 0.3s ease-in-out !important;
}
.cf7-reserva-wrapper input[type="text"]::placeholder,
.cf7-reserva-wrapper input[type="email"]::placeholder,
.cf7-reserva-wrapper input[type="tel"]::placeholder,
.cf7-reserva-wrapper textarea::placeholder {
    color: #8A8A8A !important;
}
.cf7-reserva-wrapper input[type="text"]:focus,
.cf7-reserva-wrapper input[type="email"]:focus,
.cf7-reserva-wrapper input[type="tel"]:focus,
.cf7-reserva-wrapper textarea:focus {
    border-color: rgba(121, 200, 198, 0.5) !important;
}
.cf7-reserva-wrapper textarea {
    resize: none !important;
}
.cf7-reserva-wrapper input[type="submit"] {
    background-color: #ffffff !important;
    color: #1A1A1A !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    width: 100% !important;
    padding: 14px 0 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !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;
    margin-top: 4px !important;
}
.cf7-reserva-wrapper input[type="submit"]:hover {
    background-color: var(--color-primary, #79C8C6) !important;
    color: #ffffff !important;
    transform: scale(1.01) !important;
}

/* Mobile Menu Overlay Styles */
#mobile-menu-overlay {
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 300ms ease-in-out;
}
#mobile-menu-overlay.opacity-100 {
    background-color: rgba(0, 0, 0, 0.4);
}
.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 8px;
    font-size: 16px;
    font-weight: 500;
    color: #1A1A1A;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
}
.mobile-menu-link .material-symbols-outlined {
    font-size: 22px;
}
.mobile-submenu {
    background-color: #FAFAFA;
    padding-left: 46px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}
.mobile-menu-link .arrow.rotate-90 {
    transform: rotate(90deg);
}
.mobile-submenu-link {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    color: #555555;
    text-decoration: none;
    border-bottom: 1px solid #F5F5F5;
}
.mobile-submenu-link:last-of-type {
    border-bottom: none;
}
.mobile-submenu-link-all {
    display: block;
    padding: 14px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary, #79C8C6);
    text-decoration: none;
}
.mobile-menu-button-reserve {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary, #79C8C6);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 9999px;
    padding: 14px 0;
    text-decoration: none;
}
.mobile-menu-button-reserve:hover {
    background-color: #65b8b6;
}

/* Contact Form 7 - Página Contacto */
.cf7-contacto-wrapper .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cf7-contacto-wrapper .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}
.cf7-contacto-wrapper input[type="text"],
.cf7-contacto-wrapper input[type="email"],
.cf7-contacto-wrapper input[type="tel"],
.cf7-contacto-wrapper textarea {
    background-color: #ffffff !important;
    border: 1px solid #E8E8E8 !important;
    color: #1A1A1A !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    width: 100% !important;
    outline: none !important;
    transition: all 0.3s ease-in-out !important;
}
.cf7-contacto-wrapper input[type="text"]::placeholder,
.cf7-contacto-wrapper input[type="email"]::placeholder,
.cf7-contacto-wrapper input[type="tel"]::placeholder,
.cf7-contacto-wrapper textarea::placeholder {
    color: #8A8A8A !important;
}
.cf7-contacto-wrapper input[type="text"]:focus,
.cf7-contacto-wrapper input[type="email"]:focus,
.cf7-contacto-wrapper input[type="tel"]:focus,
.cf7-contacto-wrapper textarea:focus {
    border-color: rgba(121, 200, 198, 0.5) !important;
}
.cf7-contacto-wrapper textarea {
    resize: none !important;
}
.cf7-contacto-wrapper input[type="submit"] {
    background-color: #1A1A1A !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    border-radius: 9999px !important;
    width: 100% !important;
    padding: 14px 0 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
    border: none !important;
    margin-top: 8px !important;
}
.cf7-contacto-wrapper input[type="submit"]:hover {
    background-color: var(--color-primary, #79C8C6) !important;
    transform: scale(1.01) !important;
}

/* Contact Form 7 - Bloque Misión (Ayuda/Colaborar) */
.cf7-mision-light-wrapper .wpcf7-form,
.cf7-mision-dark-wrapper .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cf7-mision-light-wrapper .wpcf7-form-control-wrap,
.cf7-mision-dark-wrapper .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}
.cf7-mision-light-wrapper input[type="text"],
.cf7-mision-light-wrapper input[type="email"],
.cf7-mision-light-wrapper input[type="tel"],
.cf7-mision-light-wrapper textarea,
.cf7-mision-dark-wrapper input[type="text"],
.cf7-mision-dark-wrapper input[type="email"],
.cf7-mision-dark-wrapper input[type="tel"],
.cf7-mision-dark-wrapper textarea {
    background-color: #ffffff !important;
    border: 1px solid #E8E8E8 !important;
    color: #1A1A1A !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    width: 100% !important;
    outline: none !important;
    transition: all 0.3s ease-in-out !important;
}
.cf7-mision-light-wrapper input[type="text"]::placeholder,
.cf7-mision-light-wrapper input[type="email"]::placeholder,
.cf7-mision-light-wrapper input[type="tel"]::placeholder,
.cf7-mision-light-wrapper textarea::placeholder,
.cf7-mision-dark-wrapper input[type="text"]::placeholder,
.cf7-mision-dark-wrapper input[type="email"]::placeholder,
.cf7-mision-dark-wrapper input[type="tel"]::placeholder,
.cf7-mision-dark-wrapper textarea::placeholder {
    color: #8A8A8A !important;
}
.cf7-mision-light-wrapper input[type="text"]:focus,
.cf7-mision-light-wrapper input[type="email"]:focus,
.cf7-mision-light-wrapper input[type="tel"]:focus,
.cf7-mision-light-wrapper textarea:focus,
.cf7-mision-dark-wrapper input[type="text"]:focus,
.cf7-mision-dark-wrapper input[type="email"]:focus,
.cf7-mision-dark-wrapper input[type="tel"]:focus,
.cf7-mision-dark-wrapper textarea:focus {
    border-color: rgba(121, 200, 198, 0.5) !important;
}
.cf7-mision-light-wrapper textarea,
.cf7-mision-dark-wrapper textarea {
    resize: none !important;
}
/* Botón de Enviar - Columna Ayuda (Fondo Negro / Texto Blanco) */
.cf7-mision-light-wrapper input[type="submit"] {
    background-color: #1A1A1A !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    border-radius: 9999px !important;
    width: 100% !important;
    padding: 12px 0 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
    border: none !important;
}
.cf7-mision-light-wrapper input[type="submit"]:hover {
    background-color: var(--color-primary, #79C8C6) !important;
}
/* Botón de Enviar - Columna Contribuir (Fondo Blanco / Texto Negro) */
.cf7-mision-dark-wrapper input[type="submit"] {
    background-color: #ffffff !important;
    color: #1A1A1A !important;
    font-weight: 500 !important;
    border-radius: 9999px !important;
    width: 100% !important;
    padding: 12px 0 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
    border: none !important;
}
.cf7-mision-dark-wrapper input[type="submit"]:hover {
    background-color: var(--color-primary, #79C8C6) !important;
    color: #ffffff !important;
}

/* Validaciones y Mensajes de Respuesta CF7 en Columna Oscura (Misión) */
.cf7-mision-dark-wrapper .wpcf7-not-valid-tip {
    color: #ffffff !important;
    font-size: 12px !important;
    margin-top: 4px !important;
}
.cf7-mision-dark-wrapper .wpcf7-response-output {
    color: #ffffff !important;
    border-color: #ffffff !important;
    font-size: 13px !important;
    margin-top: 16px !important;
    border-radius: 8px !important;
}
