/*
Theme Name: Dysser
Theme URI: https://dysser.com
Author: g44.es
Description: Tema corporativo Dysser Representaciones del Norte. Tailwind + Inter + Poppins. Contenido editable, layout bloqueado.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: dysser
*/

/* ===========================================================
   Contact Form 7 — Dysser styling (Tailwind-equivalent)
   =========================================================== */
.dy-form { display: grid; gap: 1.5rem; }
.dy-grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .dy-grid-2 { grid-template-columns: 1fr 1fr; } }

.dy-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #243b53;
    margin-bottom: 0.5rem;
    font-family: 'Inter', system-ui, sans-serif;
}

.dy-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):not(.wpcf7-list-item):not(.wpcf7-list-item-label) {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #bcccdc;
    background: rgba(240, 244, 248, 0.5);
    color: #243b53;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}
.dy-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):not(.wpcf7-list-item)::placeholder { color: #51677e; }
.dy-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):not(.wpcf7-list-item):focus {
    border-color: #C8963E;
    box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.3);
}

.dy-form select.wpcf7-form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23627d98' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem !important;
}

.dy-form textarea.wpcf7-form-control { resize: vertical; min-height: 8rem; }

.dy-acceptance { display: flex; align-items: flex-start; gap: 0.75rem; }
.dy-acceptance .wpcf7-form-control-wrap { width: 100%; }
.dy-acceptance .wpcf7-list-item { margin: 0; display: flex; align-items: flex-start; gap: 0.75rem; }
.dy-acceptance .wpcf7-list-item input[type="checkbox"] {
    margin-top: 0.25rem; width: 1rem; height: 1rem; flex-shrink: 0;
    accent-color: #C8963E;
}
.dy-acceptance .wpcf7-list-item-label { font-size: 0.875rem; color: #486581; }
.dy-acceptance .dy-link { color: #8a6124; }
.dy-acceptance .dy-link:hover { text-decoration: underline; }

.dy-submit-wrap { margin-top: 0.5rem; }
.dy-form .wpcf7-submit {
    width: 100%;
    padding: 1rem 2.5rem;
    background: #97672a;
    color: #fff;
    border: 0;
    border-radius: 9999px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dy-form .wpcf7-submit:hover {
    background: #855c22;
    box-shadow: 0 10px 25px -5px rgba(200, 150, 62, 0.25);
    transform: translateY(-2px);
}
@media (min-width: 640px) { .dy-form .wpcf7-submit { width: auto; } }

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output { border-color: #ef4444; color: #b91c1c; background: #fef2f2; border-radius: 0.75rem; padding: 1rem; margin-top: 1rem; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #16a34a; color: #166534; background: #f0fdf4; border-radius: 0.75rem; padding: 1rem; margin-top: 1rem; }
.wpcf7-not-valid-tip { color: #b91c1c; font-size: 0.8rem; margin-top: 0.25rem; }

.dy-logo { filter: grayscale(1) brightness(0); opacity: .45; }
.group:hover .dy-logo { filter: grayscale(0) brightness(1); opacity: 1; }

section.relative.min-h-\[40vh\].flex.items-center.justify-center.text-center.overflow-hidden {
    height: 50vh;
}

/* ===========================================================
   Accesibilidad (WCAG 2.1 AA) — overrides sobre utilidades Tailwind
   =========================================================== */

/* Uso del color: enlaces dentro de texto subrayados (no solo color) */
footer p a,
#cookieBanner p a,
.wpcf7-acceptance .wpcf7-list-item-label a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

/* Contraste: subir opacidades de blanco demasiado bajas sobre fondo oscuro */
.text-white\/40 { color: rgba(255, 255, 255, 0.75) !important; }
.text-white\/50 { color: rgba(255, 255, 255, 0.75) !important; }
.text-white\/30 { color: rgba(255, 255, 255, 0.6) !important; }

/* Contraste: gris de marca sobre fondo claro */
.text-brand-500 { color: #486581 !important; }

/* Areas tactiles (target size >= 24px) */
footer li a,
footer p a {
    display: inline-block;
    min-height: 24px;
    padding-top: 2px;
    padding-bottom: 2px;
}
#navbar li.flex a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
}

/* Contraste: botones dorados con texto blanco -> dorado mas oscuro (>=4.5:1) */
.bg-accent-500 { background-color: #97672a !important; }
.hover\:bg-accent-400:hover,
.hover\:bg-accent-600:hover { background-color: #855c22 !important; }

/* Contraste: dorado como TEXTO sobre fondo claro (counters, tel/email de contacto) */
.text-accent-500, .counter { color: #8a6124 !important; }
