/* ============================================
   CONTACTO - ESTILOS ESPECÍFICOS
   ============================================ */

/* Hero Banner */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--brand-red);
}

.page-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(227, 6, 19, 0.95) 0%, rgba(234, 91, 12, 0.7) 50%, rgba(227, 6, 19, 0.4) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 900px;
  width: 100%;
  padding: 3rem 2rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

.page-hero-subtitle {
  font-size: clamp(1.9rem, 2vw, 1.7rem);
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  max-width: 750px;
  margin: 0 auto;
}

/* Sección Principal de Contacto */
.contact-main {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
}

/* Formulario */
.contact-form-container {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--brand-red);
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: 'Roboto Condensed', sans-serif;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #495057;
}

.checkbox-container input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-text {
  line-height: 1.5;
}

.form-link {
  color: var(--brand-red);
  text-decoration: none;
  font-weight: 600;
}

.form-link:hover {
  text-decoration: underline;
}

.btn-submit {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 6, 19, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Información de Contacto */
.contact-info-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--brand-red);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.contact-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(227, 6, 19, 0.15);
}

.contact-info-container .contact-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.contact-details {
  flex: 1;
}

.contact-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: #212529;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.contact-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #495057;
}

/* Sección de Mapa */
.map-section {
  padding: 5rem 0;
  background-color: white;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  color: var(--brand-red);
  margin-bottom: 3rem;
  letter-spacing: 1px;
}

.map-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.map-container {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e9ecef, #f8f9fa);
  border: 2px dashed #dee2e6;
}

.map-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--brand-red);
}

.map-placeholder p {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: #212529;
  margin-bottom: 0.5rem;
}

.map-placeholder small {
  color: #6c757d;
}

.branches-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.branches-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--brand-red);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.branch-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--brand-red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.branch-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.15);
}

.branch-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: #212529;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.branch-address,
.branch-phone {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

/* Sección de Emergencias */
.emergency-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
  color: white;
}

.emergency-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.emergency-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.emergency-text {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.emergency-contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.emergency-phone,
.emergency-whatsapp {
  background: rgba(255, 255, 255, 0.15);
  padding: 2rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.emergency-phone strong,
.emergency-whatsapp strong {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phone-number {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  margin-top: 0.75rem;
  letter-spacing: 1px;
}

/* FAQ */
.faq-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: white;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid var(--brand-red);
}

.faq-item:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(227, 6, 19, 0.15);
}

.faq-question {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--brand-red);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.faq-answer {
  font-size: 1rem;
  line-height: 1.7;
  color: #495057;
}

/* Responsive */
@media (max-width: 992px) {

  .contact-layout,
  .map-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 40vh;
  }

  .contact-main,
  .map-section,
  .emergency-section,
  .faq-section {
    padding: 3rem 0;
  }

  .contact-form-container {
    padding: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .map-placeholder {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .page-hero-content {
    padding: 1.5rem;
  }

  .contact-form-container {
    padding: 1.5rem;
  }

  .form-title,
  .info-title,
  .branches-title {
    font-size: 1.5rem;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .emergency-contacts {
    grid-template-columns: 1fr;
  }

  .phone-number {
    font-size: 1.5rem;
  }
}

/* ============================================
   ESTILOS PARA MENSAJES DE FORMULARIO
   ============================================ */
.form-message {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-message-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: 2px solid #047857;
}

.form-message-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: 2px solid #b91c1c;
}

.message-icon {
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.message-text {
  flex: 1;
}

.message-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.message-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   EFECTO DE FOCO EN FORMULARIO
   ============================================ */

/* Clase que se aplica cuando el formulario debe destacarse */
.contact-form-container.form-highlight {
  border: 3px solid var(--brand-red);
  box-shadow:
    0 0 20px rgba(250, 204, 21, 0.6),
    0 0 40px rgba(250, 204, 21, 0.4),
    0 0 60px rgba(250, 204, 21, 0.2),
    0 4px 15px rgba(227, 6, 19, 0.3);
  animation: pulseGlow 2s ease-in-out 3;
}

/* Animación de pulso del resplandor */
@keyframes pulseGlow {

  0%,
  100% {
    box-shadow:
      0 0 20px rgba(250, 204, 21, 0.6),
      0 0 40px rgba(250, 204, 21, 0.4),
      0 0 60px rgba(250, 204, 21, 0.2),
      0 4px 15px rgba(227, 6, 19, 0.3);
  }

  50% {
    box-shadow:
      0 0 30px rgba(250, 204, 21, 0.8),
      0 0 60px rgba(250, 204, 21, 0.6),
      0 0 90px rgba(250, 204, 21, 0.4),
      0 6px 25px rgba(227, 6, 19, 0.5);
  }
}

/* Smooth scroll para toda la página */
html {
  scroll-behavior: smooth;
}