/* =========================================
   VARIABLES Y BASE
   ========================================= */
:root {
    --bg-dark: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #d1d5db;
    --brand-orange: #ee7b1c;
    --brand-orange-strong: #ff5500;
    --brand-red: #ea1a22;
    --font-heading: 'Arial Black', Impact, sans-serif;
    --font-body: 'Arial', sans-serif;
    --transition-smooth: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-body); }

/* =========================================
   NAVBAR (Igual a páginas anteriores)
   ========================================= */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 0.9375rem 3.125rem; background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); position: fixed; top: 0; width: 100%; z-index: 1000; transition: transform 0.3s ease-in-out; }
.navbar-hidden { transform: translateY(-100%); }
.logo img { height: 60px; margin: .5rem;}
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; }
.header-right { display: flex; flex-direction: row; align-items: center; gap: 0.9375rem; }
.nav-links { display: flex; align-items: center; }
.nav-links > a, .dropbtn { color: var(--text-main); text-decoration: none; margin-left: 1.5625rem; font-family: inherit; font-size: 1rem; text-transform: uppercase; transition: color var(--transition-smooth); cursor: pointer; }
.nav-links > a:hover, .dropdown:hover .dropbtn { color: var(--brand-orange-strong); }
.dropdown { position: relative; display: inline-block; padding-bottom: 0.625rem; top: 0.3125rem;}
.arrow { font-size: 0.7rem; margin-left: 0.1875rem; transition: transform var(--transition-smooth); }
.dropdown:hover .arrow { transform: rotate(180deg); display: inline-block; }
.dropdown-content { opacity: 0; visibility: hidden; transform: translateY(0.9375rem); position: absolute; top: 100%; left: 0; background-color: #111111; min-width: 20rem; box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.8); border-top: 3px solid var(--brand-orange); transition: all var(--transition-smooth); z-index: 1; }
.dropdown:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-content a { color: var(--text-main); padding: 0.9375rem 1.25rem; text-decoration: none; display: block; font-size: 0.85rem; font-weight: bold; border-bottom: 1px solid rgba(255,255,255,0.05); transition: all var(--transition-smooth); margin-left: 0; }
.dropdown-content a:hover { background-color: rgba(234, 26, 34, 0.1); color: var(--brand-orange); padding-left: 1.5625rem; }
.btn-phone { background-color: var(--brand-orange); color: #ffffff; padding: 0.875rem 1.75rem; border-radius: 1.875rem; text-decoration: none; font-size: 1.1rem; font-weight: bold; transition: transform var(--transition-smooth); }
.btn-phone:hover { transform: translateX(-0.1875rem); background-color: var(--brand-orange);}

/* =========================================
   CONTACT HERO SECTION
   ========================================= */
.contact-hero { padding: 8.75rem 0 0 0; background-color: var(--bg-dark); }
.contact-hero-container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.hero-text-content { padding: 3.75rem 5vw; }
.hero-text-content h1 { font-family: var(--font-heading); font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.1; margin-bottom: 1.5rem; text-transform: uppercase; }
.hero-text-content p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; margin-bottom: 2.5rem; max-width: 37.5rem; }
.breadcrumbs { margin-top: 2rem; font-size: 0.85rem; font-weight: bold; letter-spacing: 0.0625rem; text-transform: uppercase; }
.breadcrumbs a { color: var(--brand-orange); text-decoration: none; transition: color var(--transition-smooth); }
.breadcrumbs a:hover { color: var(--brand-orange); }
.breadcrumbs .divider, .breadcrumbs .current { color: var(--text-muted); margin-left: 0.5rem; }
.hero-image-content { height: 100%; min-height: 31.25rem; }
.hero-image-content img { width: 100%; height: 100%; object-fit: cover; border-radius: 6.25rem 0 0 6.25rem; }

/* =========================================
   CONTACT MAIN SECTION (INFO & FORM)
   ========================================= */
.contact-main-section { padding: 5rem 5vw; background-color: #050505; }
.contact-container { max-width: 81.25rem; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: flex-start; }

/* Información Izquierda */
.section-subtitle { display: flex; align-items: center; margin-bottom: 1rem; }
.section-subtitle span { color: var(--brand-orange); font-size: 0.85rem; font-weight: bold; letter-spacing: 0.125rem; margin-right: 1rem; }
.section-subtitle hr { flex-grow: 1; border: none; border-top: 2px solid rgba(255,255,255,0.1); max-width: 3.125rem; }

.info-block { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5625rem; }
.info-icon { margin-top: 0.2rem; }
.info-block h4 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 0.3125rem; color: white; letter-spacing: 0.05rem;}
.info-block a, .info-block p { color: var(--text-muted); text-decoration: none; font-size: 1rem; transition: color var(--transition-smooth); }
.info-block a:hover { color: var(--brand-orange); }
.map-container { margin-top: 2rem; border-radius: 0.5rem; overflow: hidden; box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.5); }

/* Formulario Derecha */
.contact-form-box { background-color: #0f0f0f; padding: 3rem; border-radius: 0.75rem; border-top: 4px solid var(--brand-orange); box-shadow: 0 0.9375rem 2.1875rem rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.05); }
.contact-form-box h3 { font-family: var(--font-heading); font-size: 1.5rem; text-transform: uppercase; margin-bottom: 2rem; color: var(--text-main); letter-spacing: 1px; }

/* Inputs */
.contact-form-box input[type="text"], .contact-form-box input[type="email"], .contact-form-box input[type="tel"] { width: 100%; padding: 0.9375rem 0; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.2); color: white; font-size: 1rem; margin-bottom: 1.5625rem; font-family: var(--font-body); transition: border-color var(--transition-smooth); }
.contact-form-box input:focus { outline: none; border-bottom: 2px solid var(--brand-orange); }
.phone-input-group { display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.2); margin-bottom: 2rem; transition: border-color var(--transition-smooth); }
.phone-input-group:focus-within { border-bottom: 2px solid var(--brand-orange); }
.phone-input-group span { margin-right: 0.625rem; font-size: 1.2rem; }
.phone-input-group input { border-bottom: none !important; margin-bottom: 0 !important; }

/* Checkboxes */
.checkbox-title { font-weight: bold; color: var(--brand-orange); margin-bottom: 1rem; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.05rem; }
.checkbox-group { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.checkbox-group label, .consent-group label { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.95rem; color: var(--text-muted); cursor: pointer; transition: color var(--transition-smooth); }
.checkbox-group label:hover, .consent-group label:hover { color: white; }

/* Consentimiento */
.consent-group { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 1rem;}
.consent-group span { line-height: 1.5; font-size: 0.85rem; color: #aaa; }
input[type="checkbox"] { accent-color: var(--brand-orange); transform: scale(1.2); margin-top: 0.25rem; cursor: pointer; }

/* Botón Submit y Links */
.btn-primary:hover { background-color: #c0392b !important; } /* Un rojo más oscuro al hover */
.form-links { text-align: center; font-size: 0.85rem; margin-top: 1rem; }
.form-links a { color: var(--brand-orange); text-decoration: none; margin: 0 0.5rem; transition: color var(--transition-smooth); }
.form-links a:hover { color: var(--brand-orange); text-decoration: underline; }

/* =========================================
   FOOTER (Igual a páginas anteriores)
   ========================================= */
.footer { background-color: #050505; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 3.75rem; }
.footer-container { max-width: 81.25rem; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3.125rem; padding: 0 5vw 3.125rem 5vw; }
.footer-logo { height: 3.75rem; margin-bottom: 1.25rem; }
.brand-col p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.footer-col h3 { font-family: var(--font-heading); color: white; margin-bottom: 1.5625rem; font-size: 1.1rem; letter-spacing: 0.0625rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.9375rem; display: flex; align-items: center; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: bold; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--brand-orange); }
.asterisks { color: var(--brand-orange); margin-right: 0.9375rem; letter-spacing: 0.125rem;}
.contact-list li { color: var(--text-muted); font-size: 0.95rem; }
.social-icons { display: flex; gap: 0.9375rem; margin-top: 1.25rem; }
.social-icons a { width: 2.1875rem; height: 2.1875rem; background-color: var(--brand-orange); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: bold; transition: transform 0.3s, background 0.3s; }
.social-icons a:hover { transform: scale(1.1); background-color: var(--brand-orange); }
.footer-bottom { background-color: #000; text-align: center; padding: 1.25rem; color: #777; font-size: 0.85rem; }

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 64rem) {
    /* Navbar Ajustes */
    .navbar { padding: 0.9375rem 2rem; }
    .mobile-menu-btn { display: block; }
    .header-right { position: absolute; top: 100%; left: 0; width: 100%; background: #0a0a0a; flex-direction: column; padding: 2rem 0; border-top: 2px solid var(--brand-red); display: none; }
    .header-right.active { display: flex; }
    .nav-links { flex-direction: column; width: 100%; gap: 1.5rem; }
    .nav-links > a, .dropdown { margin-left: 0; font-size: 1.2rem; }
    .dropdown-content { position: static; box-shadow: none; border-top: none; background: transparent; padding-left: 1rem; min-width: 100%; text-align: center; display: none; opacity: 1; visibility: visible; transform: none; }
    .dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content { display: block; }
    
    /* Hero Ajustes */
    .contact-hero-container { grid-template-columns: 1fr; }
    .hero-image-content img { border-radius: 0; min-height: 20rem; }
    
    /* Contacto Ajustes */
    .contact-container { grid-template-columns: 1fr; gap: 3rem; }
    .contact-form-box { padding: 2rem; }
    
    /* Footer Ajustes */
    .footer-container { grid-template-columns: 1fr 1fr; gap: 2.5rem;}
}

@media (max-width: 48rem) {
    .checkbox-group { grid-template-columns: 1fr; gap: 0.5rem;}
    .footer-container { grid-template-columns: 1fr; }
}

/* =========================================
   RESPONSIVE FINAL
   CONTACT PAGE
   ========================================= */

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  overflow: hidden;
}

/* Botón formulario naranja tipo cápsula */
form button[type="submit"],
.btn-submit-form,
.form-submit,
.btn-form {
  width: 100%;
  background: var(--brand-orange) !important;
  color: #000 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 18px 35px !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: none !important;
}

form button[type="submit"]:hover,
.btn-submit-form:hover,
.form-submit:hover,
.btn-form:hover {
  background: var(--brand-orange-strong) !important;
  color: #000 !important;
  transform: translateY(-2px);
}

/* Cambiar íconos inline rojos a naranja cuando se pueda */
.info-icon svg {
  stroke: var(--brand-orange) !important;
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1024px) {
  .navbar {
    padding: 14px 28px;
  }

  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10002;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .header-right {
    position: fixed !important;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: #0a0a0a;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 10001;
    padding: 90px 24px 40px;
    border-top: none !important;
  }

  .header-right.active {
    transform: translateX(0);
  }

  .nav-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .nav-links > a,
  .nav-links .dropbtn,
  .dropdown {
    margin-left: 0 !important;
    font-size: 1.15rem;
    text-align: center;
  }

  .dropdown {
    width: 100%;
    padding-bottom: 0;
    top: 0;
  }

  .dropdown-content {
    position: static;
    min-width: 100%;
    width: 100%;
    margin-top: 14px;
    background: transparent;
    border-top: 1px solid rgba(238, 123, 28, 0.35);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .dropdown:hover .dropdown-content,
  .dropdown:focus-within .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    text-align: center;
    padding: 12px;
    font-size: 0.85rem;
  }

  .contact-hero-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-hero {
    padding-top: 110px;
  }

  .hero-text-content,
  .contact-info {
    text-align: center;
  }

  .hero-text-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .breadcrumbs {
    text-align: center;
  }

  .hero-image-content {
    min-height: 420px;
  }

  .hero-image-content img {
    border-radius: 40px 40px 0 0;
  }

  .section-subtitle {
    justify-content: center;
  }

  .info-block {
    justify-content: center;
    text-align: left;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .navbar {
    padding: 12px 18px;
  }

  .logo img {
    height: 52px;
    margin: 0;
  }

  .contact-hero {
    padding-top: 95px;
  }

  .hero-text-content {
    padding: 40px 22px;
  }

  .hero-text-content h1 {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .hero-text-content p {
    font-size: 1rem;
  }

  .hero-image-content {
    min-height: 330px;
  }

  .contact-main-section {
    padding: 60px 22px;
  }

  .contact-container {
    gap: 34px;
  }

  .info-block {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(238,123,28,0.15);
    border-radius: 14px;
    padding: 18px;
  }

  .map-container iframe {
    height: 220px;
  }

  .contact-form-box {
    padding: 30px 22px;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .checkbox-group label,
  .consent-group label {
    text-align: left;
  }

  .btn-phone {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col ul li,
  .contact-list li {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 480px) {
  .hero-text-content h1 {
    font-size: 2.2rem;
  }

  .hero-image-content {
    min-height: 280px;
  }

  .contact-form-box {
    padding: 26px 18px;
  }

  .info-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section-subtitle {
    justify-content: center;
  }

  .section-subtitle hr {
    max-width: 35px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }
}
@media (max-width: 1024px) {
    .dropdown-content {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        min-width: 100%;
        box-shadow: none;
        border-top: none;
        background-color: transparent;
        transition: all 0.3s ease;
    }

    .dropdown.open .dropdown-content {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        margin-top: 15px;
    }

    .dropdown.open .arrow {
        transform: rotate(180deg);
        display: inline-block;
    }
}