/*
Theme Name: CTES Theme
Theme URI: http://example.com/ctes-theme
Author: Gabriel Vilchez (Ingeniería Digital)
Author URI: https://ingenieriadigital.cl/
Description: A custom WordPress theme for CTES.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ctes-theme
*/


input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #00963f !important;
    box-shadow: 0 0 0 2px rgba(0, 150, 63, 0.2) !important;
}

/* Estilos Formulario CF7 (CSS Puro) */
.ctes-form-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.ctes-form-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
}

@media (min-width: 768px) {
    .ctes-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ctes-form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
}

.ctes-form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.dark .ctes-form-group label {
    color: #d1d5db;
}

.ctes-input {
    width: 100% !important;
    border-radius: 0.5rem !important;
    border: 1px solid #d1d5db !important;
    background-color: #ffffff !important;
    padding: 0.75rem 1rem !important;
    color: #111827;
    transition: all 0.2s;
    box-sizing: border-box;
}

.dark .ctes-input {
    border-color: #4b5563;
    background-color: #252525;
    color: #ffffff;
}

.ctes-input:focus {
    outline: none;
    border-color: #00963f !important;
    box-shadow: 0 0 0 2px rgba(0, 150, 63, 0.2) !important;
}

.ctes-textarea {
    min-height: 120px !important;
    max-height: 120px !important;
}

.ctes-form-submit {
    padding-top: 1rem;
    width: 100%;
}

.ctes-btn {
    background-color: #318061;
    color: #ffffff;
    border-radius: 9999px;
    padding: 1rem 3rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ctes-btn:hover {
    background-color: #235b44;
}

/* Fix para CF7: Ocultar spans de respuesta vacíos que ocupan espacio */
.wpcf7-response-output {
    @apply mt-4 rounded-lg text-sm font-medium border-none !important;
}


.wpml-ls-statics-shortcode_actions.wpml-ls.wpml-ls-legacy-dropdown.js-wpml-ls-legacy-dropdown {
    width: 110px;
    margin: 0;
}

.wpml-ls-statics-shortcode_actions.wpml-ls.wpml-ls-legacy-dropdown.js-wpml-ls-legacy-dropdown>a {
    display: none;
}

.wpml-ls-statics-shortcode_actions.wpml-ls.wpml-ls-legacy-dropdown.js-wpml-ls-legacy-dropdown>ul>a {
    display: none;
}

.wpml-ls-statics-shortcode_actions.wpml-ls.wpml-ls-legacy-dropdown.js-wpml-ls-legacy-dropdown>ul>li>a:first-child {
    display: none;
}

a.js-wpml-ls-item-toggle.wpml-ls-item-toggle {
    background-color: transparent;
    border: none;
}

/* Quienes Somos Template Styles */
.bio-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(4px) !important;
    transform: translateY(100%) !important;
    transition: transform 0.5s ease-in-out !important;
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    padding-top: 4rem !important;
}

.group:hover .bio-overlay {
    transform: translateY(0) !important;
}

.custom-scroll::-webkit-scrollbar {
    width: 4px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #318061;
    border-radius: 10px;
}

.container-ctes {
    max-width: 1280px;
}

@media(max-width:1024px) {
    .container-ctes {
        width: 100%;
        max-width: 100%;
    }
}

.woocommerce-MyAccount-content a {
    color: #318061;
    text-decoration: underline;
}

nav.woocommerce-MyAccount-navigation ul li {
    background: #e3efeb;
    color: #616a76;
    margin-bottom: 10px;
    border-radius: 9px;
    border-left: 5px solid #318061;
    transition: all 0.2s linear;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav.woocommerce-MyAccount-navigation ul li:hover {
    background: #318061;
    color: #fff;
}

nav.woocommerce-MyAccount-navigation ul li a {
    width: 100%;
    display: flex;
    padding: 10px 20px;
}

li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--downloads {
    display: none;
}

.pmpro-account .pmpro a {
    color: #318061;
    text-decoration: underline;
}

.woocommerce-info a.woocommerce-Button.wc-forward.button {
    display: none;
}

.codedropz-upload-inner {
    opacity: 0.5;
}

.codedropz-upload-inner h3 {
    font-size: 20px;
}

.contenido-single-post a {
    color: #318061;
    text-decoration: underline;
}