/* Asegurar que el header se mantenga fijo */
.topbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(155, 111, 199, 0.08) !important;
}

/* Estilos para la página de contacto - Diseño Moderno y Elegante */

:root {
  --contact-primary: #a78bfa;
  --contact-primary-dark: #8b5cf6;
  --contact-secondary: #c4b5fd;
  --contact-accent: #ddd6fe;
  --contact-bg: #f8fafc;
  --contact-card: #ffffff;
  --contact-text: #1e293b;
  --contact-muted: #64748b;
  --contact-border: #e2e8f0;
}

.contact-main {
  min-height: 100vh;
  background: var(--contact-bg);
}

/* Hero moderno con imagen de fondo */
.contact-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
    linear-gradient(135deg, rgba(167, 139, 250, 0.5) 0%, rgba(196, 181, 253, 0.4) 100%),
    url('../images/contact-hero-bg.png') center 30%;
  background-size: cover;
  padding: 140px 32px 100px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at top right, rgba(196, 181, 253, 0.2), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(167, 139, 250, 0.2), transparent 60%);
  pointer-events: none;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  color: white;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: fadeInDown 0.6s ease-out;
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.2);
}

.contact-hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  margin: 0 0 24px 0;
  color: white;
  line-height: 1.1;
  letter-spacing: -2px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.contact-hero-content p {
  font-size: 1.3rem;
  margin: 0 0 48px 0;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  animation: fadeInUp 0.6s ease-out 0.4s both;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.stat-item {
  position: relative;
  text-align: center;
  padding: 28px 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.15);
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(167, 139, 250, 0.25);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Contenedor principal */
.contact-container {
  max-width: 1200px;
  margin: -60px auto 100px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 10;
}

/* Sección del formulario */
.contact-form-section {
  background: var(--contact-card);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 
    0 20px 60px rgba(167, 139, 250, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--contact-border);
  transition: all 0.4s ease;
  animation: fadeInLeft 0.6s ease-out;
}

.contact-form-section:hover {
  box-shadow: 
    0 30px 80px rgba(167, 139, 250, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.form-header {
  margin-bottom: 40px;
  text-align: left;
}

.form-badge {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(196, 181, 253, 0.12));
  color: var(--contact-primary);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.form-header h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0 0 16px 0;
  color: var(--contact-text);
  letter-spacing: -1px;
  line-height: 1.2;
}

.form-header p {
  color: var(--contact-muted);
  font-size: 1rem;
  margin: 0;
  line-height: 1.7;
}

/* Formulario */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-weight: 700;
  color: var(--contact-text);
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.form-input {
  padding: 16px 20px;
  border: 2px solid var(--contact-border);
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  background: var(--contact-bg);
  font-family: inherit;
  color: var(--contact-text);
}

.form-input:focus {
  border-color: var(--contact-primary);
  background: white;
  box-shadow: 
    0 0 0 4px rgba(167, 139, 250, 0.12),
    0 4px 12px rgba(167, 139, 250, 0.08);
  transform: translateY(-2px);
}

.form-input::placeholder {
  color: var(--contact-muted);
  opacity: 0.6;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
  line-height: 1.7;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

.checkbox-group {
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--contact-muted);
  line-height: 1.6;
  transition: color 0.2s;
}

.checkbox-label:hover {
  color: var(--contact-text);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--contact-primary);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Botón de envío */
.form-actions {
  margin-top: 12px;
}

.btn-submit {
  width: 100%;
  padding: 18px 36px;
  background: linear-gradient(135deg, var(--contact-primary), var(--contact-secondary));
  border: none;
  border-radius: 14px;
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 
    0 8px 24px rgba(167, 139, 250, 0.25),
    0 4px 12px rgba(196, 181, 253, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--contact-secondary), var(--contact-primary));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 36px rgba(167, 139, 250, 0.35),
    0 8px 16px rgba(196, 181, 253, 0.25);
}

.btn-submit:hover::before {
  opacity: 1;
}

.btn-submit svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.btn-submit:hover svg {
  transform: translateX(4px) rotate(-5deg);
}

.btn-submit span {
  position: relative;
  z-index: 1;
}

.btn-submit:active {
  transform: translateY(-1px);
}

/* Información de contacto - Sidebar */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInRight 0.6s ease-out 0.2s both;
}

.info-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0 0 8px 0;
  color: var(--contact-text);
  letter-spacing: -0.5px;
}

.info-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--contact-card);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--contact-border);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--contact-primary), var(--contact-secondary));
  transform: translateX(-4px);
  transition: transform 0.3s ease;
}

.info-card:hover {
  transform: translateX(4px);
  box-shadow: 
    0 12px 28px rgba(167, 139, 250, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: rgba(167, 139, 250, 0.2);
}

.info-card:hover::before {
  transform: translateX(0);
}

.info-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--contact-primary), var(--contact-secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
  box-shadow: 0 8px 20px rgba(167, 139, 250, 0.2);
  transition: all 0.3s ease;
}

.info-card:hover .info-icon {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 12px 28px rgba(167, 139, 250, 0.3);
}

.info-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--contact-text);
  letter-spacing: 0.3px;
}

.contact-link {
  color: var(--contact-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.2s;
  display: block;
  margin: 6px 0;
}

.contact-link:hover {
  color: var(--contact-secondary);
  transform: translateX(4px);
}

.contact-text {
  color: var(--contact-muted);
  margin: 0;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Mensaje de éxito */
.form-success {
  text-align: center;
  padding: 80px 40px;
  animation: fadeIn 0.5s ease-out;
}

.form-success svg {
  color: #10b981;
  margin: 0 auto 28px;
  filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.3));
  animation: scaleIn 0.5s ease-out;
}

.form-success h3 {
  font-size: 2.2rem;
  font-weight: 900;
  margin: 0 0 16px 0;
  color: var(--contact-text);
  letter-spacing: -1px;
}

.form-success p {
  font-size: 1.1rem;
  color: var(--contact-muted);
  margin: 0;
  line-height: 1.7;
}

.form-success.hidden,
.contact-form.hidden {
  display: none;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #f8f4ff 0%, #ede7f6 50%, #f3e5f5 100%);
  color: #4a2c5e;
  margin-top: 100px;
  padding: 60px 32px 32px;
  border-top: 4px solid var(--contact-primary);
}

/* Forzar texto blanco en el footer de la página de contacto */
body.contacto-page .footer,
body.contacto-page .footer-section p,
body.contacto-page .footer-section a,
body.contacto-page .footer-section h4,
body.contacto-page .footer-bottom {
  color: #ffffff !important;
}

body.contacto-page .footer-section a {
  color: rgba(255,255,255,0.9) !important;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #fff;
  letter-spacing: 0.5px;
}

.footer-section p,
.footer-section .footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 10px 0;
  display: block;
  transition: all 0.2s;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-section .footer-links a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(155, 111, 199, 0.2);
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
}

/* Animaciones */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ============================================================================ */

/* MOBILE (320px - 767px) */
@media (max-width: 767px) {
  .contact-hero {
    min-height: 350px;
    padding: 100px 20px 60px;
  }
  
  .contact-hero-content h1 {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
  }
  
  .contact-hero-content p {
    font-size: 0.95rem;
    margin: 0 0 20px 0;
  }
  
  .hero-stats {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .stat-item {
    padding: 12px 16px;
    min-width: 100px;
    font-size: 0.85rem;
  }
  
  .stat-number {
    font-size: 1.6rem;
  }
  
  .contact-container {
    display: block;
    padding: 0 20px 40px;
    gap: 0;
  }
  
  .contact-info {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
    margin-top: 0;
    display: block;
  }
  
  .contact-info.active {
    display: block;
  }
  
  .contact-form-section {
    padding: 20px 16px;
    border-radius: 16px;
    margin-top: 0;
  }
  
  .form-header h2 {
    font-size: 1.4rem;
    margin-bottom: 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .form-group {
    margin-bottom: 14px;
  }
  
  .form-label {
    font-size: 0.9rem;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 16px;
    padding: 10px 12px;
  }
  
  .btn-submit {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  
  .info-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .info-card {
    padding: 20px 16px;
    border-radius: 12px;
  }
  
  .info-card-icon {
    font-size: 2rem;
  }
  
  .info-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .info-card p {
    font-size: 0.85rem;
  }
}

/* TABLET (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .contact-hero {
    min-height: 400px;
    padding: 100px 30px 80px;
  }
  
  .contact-hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }
  
  .contact-hero-content p {
    font-size: 1.05rem;
    margin-bottom: 24px;
  }
  
  .hero-stats {
    gap: 16px;
    flex-wrap: wrap;
  }
  
  .stat-item {
    padding: 16px 24px;
    min-width: 120px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .contact-container {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 30px 60px;
    gap: 24px;
  }
  
  .contact-info {
    position: static;
    margin-top: 0;
  }
  
  .info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .contact-form-section {
    padding: 32px 28px;
    border-radius: 16px;
    margin-top: -40px;
    z-index: 10;
  }
  
  .form-header h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
  }
  
  .form-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .form-group {
    margin-bottom: 16px;
  }
  
  .info-card {
    padding: 24px 20px;
  }
  
  .info-card h3 {
    font-size: 1.05rem;
  }
}

/* DESKTOP (1024px+) */
@media (min-width: 1024px) {
  .contact-hero {
    min-height: 500px;
    padding: 120px 40px 80px;
  }
  
  .contact-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 16px;
  }
  
  .contact-hero-content p {
    font-size: 1.15rem;
    margin-bottom: 32px;
  }
  
  .hero-stats {
    gap: 24px;
  }
  
  .stat-item {
    padding: 20px 32px;
  }
  
  .stat-number {
    font-size: 2.4rem;
  }
  
  .contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 40px 80px;
    gap: 40px;
    margin-top: -40px;
  }
  
  .contact-info {
    position: relative;
    z-index: 5;
  }
  
  .info-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .contact-form-section {
    padding: 40px 32px;
    border-radius: 20px;
    margin-top: 0;
  }
  
  .form-header h2 {
    font-size: 2rem;
    margin-bottom: 28px;
  }
  
  .form-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .info-card {
    padding: 28px 24px;
  }
  
  .info-card h3 {
    font-size: 1.15rem;
  }
}

/* ── Aviso oficina ── */
.mapa-aviso-grid {
  display: grid;
  grid-template-columns: 40% 40%;
  gap: 0;
  column-gap: 10%;
  padding: 32px 5%;
  align-items: start;
  background: #f4f4f8;
}

@media (max-width: 860px) {
  .mapa-aviso-grid {
    grid-template-columns: 1fr;
    padding: 24px 5%;
    column-gap: 0;
    row-gap: 20px;
  }
}

.oficina-aviso-card {
  border-left: 4px solid #b45309;
  background: #fffbeb;
  padding: 0 !important;
  overflow: hidden;
}

.oficina-aviso-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #92400e;
  color: #fff;
  padding: 12px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.oficina-aviso-header svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.oficina-aviso-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oficina-aviso-body p {
  margin: 0;
  font-size: 0.88rem;
  color: #78350f;
  line-height: 1.6;
}

.oficina-aviso-body p strong {
  color: #92400e;
}

/* ============================================================================
   CONTACT FORM 7 — ESTILO ELEGANTE HERGOM
   ============================================================================ */

/* Contenedor CF7 */
.wpcf7 {
  margin-top: 8px;
}

/* Quitar márgenes de los <p> que CF7 usa como filas */
.wpcf7-form > p {
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
}

.wpcf7-form > p:last-of-type {
  margin-bottom: 0;
}

/* Labels */
.wpcf7-form label {
  font-weight: 700;
  color: var(--contact-text);
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  display: block;
}

/* Inputs, email, textarea */
.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--contact-border);
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  background: var(--contact-bg);
  font-family: inherit;
  color: var(--contact-text);
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):focus {
  border-color: var(--contact-primary);
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(167, 139, 250, 0.12),
    0 4px 12px rgba(167, 139, 250, 0.08);
  transform: translateY(-2px);
}

/* Placeholder */
.wpcf7-form-control::placeholder {
  color: var(--contact-muted);
  opacity: 0.6;
}

/* Textarea */
.wpcf7-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.7;
}

/* Botón Enviar */
.wpcf7-submit {
  display: block;
  width: 100%;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--contact-primary), var(--contact-secondary));
  border: none;
  border-radius: 14px;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow:
    0 8px 24px rgba(167, 139, 250, 0.28),
    0 4px 12px rgba(196, 181, 253, 0.2);
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.wpcf7-submit:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 36px rgba(167, 139, 250, 0.38),
    0 8px 16px rgba(196, 181, 253, 0.28);
}

.wpcf7-submit:active {
  transform: translateY(-1px);
}

/* Mensaje de respuesta (éxito / error) */
.wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  border: none !important;
  text-align: center;
}

/* Éxito */
.wpcf7-form.sent .wpcf7-response-output {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0) !important;
  color: #065f46 !important;
  border-left: 4px solid #10b981 !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15) !important;
}

/* Error de validación */
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output {
  background: linear-gradient(135deg, #fee2e2, #fecaca) !important;
  color: #991b1b !important;
  border-left: 4px solid #ef4444 !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.12) !important;
}

/* Error del servidor */
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output {
  background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
  color: #92400e !important;
  border-left: 4px solid #f59e0b !important;
}

/* Mensajes de error inline */
.wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 6px;
  display: block;
}

/* Input inválido */
.wpcf7-form-control.wpcf7-not-valid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* Spinner de carga */
.wpcf7-spinner {
  display: none !important;
}

/* Ajuste móvil */
@media (max-width: 767px) {
  .wpcf7-form > p {
    margin-bottom: 16px;
  }

  .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
    font-size: 16px;
    padding: 12px 14px;
  }

  .wpcf7-submit {
    padding: 14px 24px;
    font-size: 1rem;
  }
}
