/*
Theme Name: Hedi Premium
Theme URI: 
Author: Construyendo Entornos Más Productivos
Author URI: 
Description: WordPress Block Theme de alto rendimiento, estructurado con Tailwind CSS. Especializado en impermeabilización técnica.
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
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: hedi-premium
Tags: full-site-editing, block-theme, dark, tailwind
*/

/* HEDI Premium - Master UI/UX Fixes */
:root {
  --hedi-dark: #00193d;
  --hedi-blue: #2563eb;
  --hedi-slate: #0f172a;
  --hedi-gray: #64748b;
}

body {
  background-color: #ffffff;
  color: var(--hedi-slate);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

/* Visibility Fixes: Force contrast where missing */
.bg-white,
.has-white-background-color {
  background-color: #ffffff !important;
  color: #0f172a !important;
}
.bg-dark,
.bg-[#00193D] {
  background-color: #00193d !important;
  color: #ffffff !important;
}
.bg-black {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Force white text on dark sections regardless of Tailwind */
header,
footer,
[style*="background-color: #00193D"],
.bg-black {
  color: #ffffff !important;
}

header a,
footer a,
[style*="background-color: #00193D"] a {
  color: #ffffff !important;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
.font-black {
  font-family: "Outfit", "Inter", sans-serif;
  font-weight: 900 !important;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

/* Specific Block Fixes */
.wp-block-table th {
  background-color: #00193d;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 15px;
}
.wp-block-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 15px;
  color: #0f172a !important;
}

.wp-block-quote {
  border-left: 4px solid var(--hedi-blue);
  background-color: #f1f5f9;
  padding: 40px;
}
.wp-block-quote p {
  color: #00193d !important;
  font-size: 1.5rem;
  font-style: italic;
}

/* AOS Fix */
[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contact Form 7 Dark Theme Styling */
.cf7-dark-theme .wpcf7 {
  width: 100%;
  max-width: 448px; /* max-w-md */
  margin: 0 auto;
}

.cf7-dark-theme label {
  display: block;
}

.cf7-dark-theme br {
  display: none;
}

.cf7-dark-theme .wpcf7-form-control-wrap {
  display: block;
}

.cf7-dark-theme input.wpcf7-text,
.cf7-dark-theme input.wpcf7-tel {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  padding: 12px 0 !important;
  font-size: 0.875rem !important; /* text-sm */
  box-shadow: none !important;
  border-radius: 0 !important;
}

.cf7-dark-theme input.wpcf7-text:focus,
.cf7-dark-theme input.wpcf7-tel:focus {
  border-bottom-color: white !important;
  outline: none !important;
}

.cf7-dark-theme .wpcf7-submit {
  width: 100% !important;
  background: white !important;
  color: black !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  font-size: 0.75rem !important; /* text-xs */
  padding: 16px !important;
  margin-top: 32px !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.3s ease !important;
  border-radius: 0 !important;
}

.cf7-dark-theme .wpcf7-submit:hover {
  background: #e5e7eb !important; /* gray-200 */
}

/* Hide default validation error styles that break dark layout */
.cf7-dark-theme .wpcf7-not-valid-tip {
  color: #f87171 !important; /* red-400 */
  font-size: 10px !important;
  text-transform: uppercase;
  font-weight: bold;
  margin-top: 4px;
}

.cf7-dark-theme .wpcf7-response-output {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  font-size: 12px !important;
  margin: 20px 0 0 0 !important;
  padding: 10px !important;
  text-align: center;
}

.cf7-dark-theme .wpcf7-spinner {
  background-color: white !important;
}

/* Contact Form 7 Light Theme Styling (for Contact Page) */
.cf7-light-theme .wpcf7 {
  width: 100%;
}

.cf7-light-theme br {
  display: none;
}

.cf7-light-theme .wpcf7-form-control-wrap {
  display: block;
}

.cf7-light-theme input.wpcf7-text,
.cf7-light-theme input.wpcf7-email,
.cf7-light-theme input.wpcf7-tel,
.cf7-light-theme select.wpcf7-select,
.cf7-light-theme textarea.wpcf7-textarea {
  width: 100% !important;
  background-color: #f9fafb !important; /* bg-gray-50 */
  border: 1px solid #e5e7eb !important; /* border-gray-200 */
  padding: 12px 16px !important;
  font-size: 0.875rem !important; /* text-sm */
  color: #111827 !important;
  transition: all 0.2s ease-in-out !important;
  border-radius: 0 !important;
}

.cf7-light-theme input.wpcf7-text:focus,
.cf7-light-theme input.wpcf7-email:focus,
.cf7-light-theme input.wpcf7-tel:focus,
.cf7-light-theme select.wpcf7-select:focus,
.cf7-light-theme textarea.wpcf7-textarea:focus {
  border-color: #2563eb !important; /* focus:border-blue-600 */
  background-color: white !important;
  outline: none !important;
}

.cf7-light-theme .wpcf7-submit {
  width: 100% !important;
  background-color: black !important;
  color: white !important;
  padding: 20px !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
  margin-top: 16px !important;
}

.cf7-light-theme .wpcf7-submit:hover {
  background-color: #2563eb !important; /* hover:bg-blue-600 */
}

.cf7-light-theme .wpcf7-response-output {
  margin: 20px 0 0 0 !important;
  padding: 15px !important;
  font-size: 12px !important;
  font-weight: bold;
  text-align: center;
  border: 2px solid #2563eb !important;
  color: #2563eb !important;
}

/* Glassmorphism Refinement */
.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure Hero Text Visibility - Ultra Aggressive */
[style*="background-color: #000000"] h1,
[style*="background-color: #000000"] h2,
[style*="background-color: #000000"] p,
[style*="background-color: #000000"] .wp-block-post-title,
[style*="background-color: #000000"] .wp-block-post-excerpt {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Fix for potential inheriting filters */
.relative.z-20 {
  filter: none !important;
  backdrop-filter: none !important;
}

/* Animations Fallback visibility */
[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
}
[data-aos].aos-animate {
  opacity: 1;
}

/* -------------------------------------------------------------------------- */
/* Newsletter CF7 - Footer
/* -------------------------------------------------------------------------- */
.cf7-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #2a4365 !important;
    border-radius: 0.25rem;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2) !important;
}
.cf7-newsletter form p {
    margin: 0;
    padding: 0;
    line-height: 0;
}
.cf7-newsletter input[type="email"] {
    width: 100%;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #2a4365 !important;
    padding: 1.25rem 1.5rem !important; /* py-5 px-6 */
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    border-radius: 0;
    box-shadow: none !important;
}
.cf7-newsletter input[type="email"]::placeholder {
    color: #9ca3af;
}
.cf7-newsletter input[type="submit"] {
    width: 100%;
    font-weight: 900 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 1.25rem 1.5rem !important; /* py-5 px-6 */
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    background-color: #70a5ff !important;
    color: #00193D !important;
    font-size: 0.85rem !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
}
.cf7-newsletter input[type="submit"]:hover {
    opacity: 0.9;
}
.cf7-newsletter .wpcf7-spinner {
    display: none !important;
}
.cf7-newsletter .wpcf7-response-output {
    margin: 0 !important;
    padding: 1rem !important;
    font-size: 0.8rem !important;
    border: none !important;
    color: white !important;
    background: rgba(0,0,0,0.5) !important;
    text-align: center;
}

/* MOBILE MENU ACCORDION FIX */
#mobile-menu-drawer a {
  color: #000000 !important;
}
#mobile-menu-drawer #soluciones-content a {
  color: #64748b !important;
}
#mobile-menu-drawer a:hover {
  color: #2563eb !important;
}
