/* ====== Contact Page Styles ====== */
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

.contact-container {
  display: grid;
  grid-template-columns: 3fr 2fr; /* más espacio para el formulario */
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Mobile layout - mantener estructura pero ajustar */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .founder-image {
    display: none;
  }
}
/* Una sola imagen de fondo para toda la pantalla */
.contact-container::before{
  content:"";
  position:absolute; inset:0;
  background:url('/images/founder.webp') right center/cover no-repeat fixed;
  z-index:0;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .contact-container::before {
    background: url('/images/founder-mobile.webp') center/cover no-repeat fixed;
  }
  
  .contact-container::after {
    display: none;
  }
  
  .contact-content {
    padding: calc(var(--nav-h) + 20px) 20px 20px;
  }
  
  .contact-form-section {
    max-width: 100%;
    margin-top: 60px;
  }
}
/* Divisor vertical al centro (entre columnas) */
.contact-container::after{
  content: "";
  position: absolute;
  top: var(--nav-h);
  bottom: 0;
  left: calc(100% * 3 / 5);
  width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,.1) 40%, rgba(255,255,255,.25));
  opacity: .5;
  pointer-events: none;
}

.contact-content {
  padding: calc(var(--nav-h) + 24px) 40px 24px;
  position: relative;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-content::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px) saturate(120%);
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.55));
  z-index: 1;
}
.contact-content::after{
  content: "";
  position: absolute; inset: 0;
  pointer-events:none;
  z-index: 1;
}

.contact-form-section {
  position: relative;
  z-index: 2; /* sobre el blur */
  max-width: 580px;
}

.contact-title {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 .4rem;
  color: #fff;
}

.contact-subtitle {
  font-size: .9rem;
  color: #eaeaea;
  margin-bottom: 1rem;
  line-height: 1.4;
  letter-spacing: .01em;
}

.contact-form {
  margin-bottom: 1.2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #fff;
  font-size: .85rem;
}

.form-group input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: box-shadow 0.2s;
}

.form-group input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-group input::placeholder {
  color: #666;
}

.form-group textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: box-shadow 0.2s;
  resize: vertical;
}

.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-group textarea::placeholder {
  color: #666;
}

.recaptcha-container {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-start;
}

.error-message {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 1rem;
  color: #ff6b6b;
}

.error-message ul {
  margin: 0;
  padding-left: 1rem;
}

.error-message li {
  font-size: .85rem;
  margin-bottom: 0.3rem;
}

.success-message {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 1rem;
  color: #51cf66;
  font-size: .9rem;
}

.form-row-full {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.form-row-full .form-group {
  flex: 1;
  margin-bottom: 0;
}

.send-btn {
  background: #fff;
  color: #111;
  border: none;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.send-btn:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}

.info-sections {
  display: grid;
  gap: 16px;
  margin-bottom: 1rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.info-section h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #fff;
  min-height: 1.1rem;
}

.info-section p {
  color: #eaeaea;
  line-height: 1.4;
  margin: 0;
  font-size: .85rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-btn {
  background: #fff;
  color: #111;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  width: fit-content;
  transition: all 0.2s;
  font-size: .9rem;
}

.contact-btn:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}

.contact-info {
  color: #eaeaea;
  font-size: .9rem;
}

.contact-info strong {
  color: #fff;
}

.founder-image {
  position: relative;
  z-index: 0; /* deja ver la imagen del contenedor */
}

.founder-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.15), rgba(0,0,0,.35));
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  .contact-container::after{ display:none }
  
  .founder-image {
    min-height: 400px;
  }
  
  .contact-content {
    padding: calc(var(--nav-h) + 20px) 20px 24px;
  }
  
  .contact-form-section {
    max-width: 600px;
  }
}

@media (max-width: 900px) {
  .contact-form-section {
    max-width: 100%;
  }
  
  .form-row-full {
    flex-direction: column;
    gap: .8rem;
    align-items: stretch;
  }
  
  .form-row-full .form-group {
    flex: none;
  }
  
  .send-btn {
    align-self: flex-start;
    margin-top: .5rem;
    width: 100%;
    max-width: 120px;
  }
}

@media (max-width: 768px) {
  .contact-content {
    padding: 80px 15px 40px;
    align-items: center;
    justify-content: flex-start;
  }
  
  .contact-form-section {
    max-width: 100%;
  }
  
  .contact-title {
    font-size: clamp(20px, 2.4vw, 28px);
    margin-bottom: .3rem;
  }
  
  .contact-subtitle {
    font-size: .85rem;
    margin-bottom: .8rem;
  }
  
  .form-row-full {
    flex-direction: column;
    gap: .8rem;
    align-items: stretch;
  }
  
  .form-row-full .form-group {
    margin-bottom: 0;
    flex: none;
  }
  
  .send-btn {
    align-self: flex-start;
    margin-top: .5rem;
    width: 100%;
    max-width: 120px;
  }
  
  .form-group {
    margin-bottom: .8rem;
  }
  
  .form-group label {
    font-size: .8rem;
    margin-bottom: .25rem;
  }
  
  .form-group input,
  .form-group textarea {
    font-size: .85rem;
    height: 36px;
    padding: 0 10px;
  }
  
  .form-group textarea {
    min-height: 80px;
    padding: 10px;
  }
  
  .send-btn {
    height: 36px;
    font-size: .85rem;
    padding: 0 14px;
  }
  
  .info-sections {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: .8rem;
  }
  
  .info-section h3 {
    font-size: .9rem;
    margin-bottom: .3rem;
  }
  
  .info-section p {
    font-size: .8rem;
    line-height: 1.3;
  }
  
  .contact-btn {
    font-size: .85rem;
    padding: 8px 14px;
  }
  
  .contact-info {
    font-size: .85rem;
  }
  
  .recaptcha-container {
    margin-top: .8rem;
  }
  
  .error-message,
  .success-message {
    font-size: .8rem;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .contact-content {
    padding: 70px 12px 30px;
  }
  
  .contact-title {
    font-size: clamp(18px, 2.2vw, 24px);
  }
  
  .contact-subtitle {
    font-size: .8rem;
  }
  
  .form-group input,
  .form-group textarea {
    font-size: .8rem;
    height: 34px;
  }
  
  .form-group textarea {
    min-height: 75px;
  }
  
  .send-btn {
    height: 34px;
    font-size: .8rem;
  }
  
  .info-section h3 {
    font-size: .85rem;
  }
  
  .info-section p {
    font-size: .75rem;
  }
  
  .contact-btn {
    font-size: .8rem;
    padding: 7px 12px;
  }
  
  .contact-info {
    font-size: .8rem;
  }
  
  .recaptcha-container {
    margin-top: .6rem;
  }
  
  /* Ajustar reCAPTCHA para móvil */
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: center center;
  }
  
  .recaptcha-container {
    display: flex;
    justify-content: center;
  }
  
  /* Mejorar el blur de fondo en móvil */
  .contact-content::before {
    backdrop-filter: blur(8px) saturate(100%);
    background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.7));
  }
  
  /* Inputs más altos en móvil */
  .form-group input {
    height: 48px;
    font-size: 16px;
  }
  
  /* Margen superior para el texto "Built Around What You Need" */
  .contact-title {
    margin-top: 40px;
  }
  
  /* Centrar botón Send en móvil y cambiar color */
  .send-btn {
    background: #D4A854;
    margin: 0 auto;
    display: block;
  }
}

