/* =========================================
   ESTILOS BASE (Móviles / Pantallas pequeñas)
   ========================================= */
html { box-sizing: border-box; scroll-behavior: smooth; } 
*, *::before, *::after { margin: 0; padding: 0; box-sizing: inherit; font-family: "Raleway", sans-serif; text-decoration: none; list-style: none;} 

img, picture, canvas { max-width: 100%; display: block; } 
body { overflow-x: hidden; background-color: #161513; color: #f4f1ea; } 

main, footer, header { width: 100%; max-width: 1600px; margin: auto; }

/* SECCIÓN DE CONTACTO (Versión Móvil por defecto) */

h1 {
    color: var(--dorado);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 8%;
    display: flex;
    align-items: center;
    gap: 12px;
    font-variant: small-caps;
    margin-bottom: 16px;
}

h1::before {
    content: "";
    width: 24px;
    height: 2px;
    flex-shrink: 0;
    background-color: var(--dorado);
}

.contacto-secc {
  padding: 40px 20px;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 120px;
}

.contacto-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column; /* Apilado verticalmente en celulares */
  gap: 40px;
  position: relative;
}

/* Columna Izquierda (Texto) */
.contacto-textos p:first-of-type {
  font-size: clamp(28px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.15;
  color: #f4f1ea;
  margin-bottom: 20px;
}

.contacto-textos p:first-of-type span {
  font-style: italic;
  color: #D2AF56;
}

.contacto-textos p:last-of-type {
  font-size: 14px;
  line-height: 1.6;
  color: #a8a39a;
}

/* Columna Derecha / Formulario */
.contacto-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-box {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-box label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #D2AF56;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-box input,
.form-box select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 0;
  color: #f4f1ea;
  font-size: 16px;
  outline: none;
  border-radius: 0; /* Previene estilos por defecto en iOS */
}

.form-box input::placeholder {
  color: #66635e;
  font-weight: 300;
}

.form-box select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D2AF56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 16px;
  cursor: pointer;
}

.form-box select option {
  background-color: #161513;
  color: #f4f1ea;
}

.cta-form {
  background-color: #f4f1ea;
  color: #161513;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 500;
  padding: 16px 28px;
  border: 1px solid #f4f1ea;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Transición ultra suave */
}

.cta-form:hover {
  background-color: #D2AF56;
  border-color: #D2AF56;
  color: #161513;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(210, 175, 86, 0.25); /* Sombra difuminada elegante */
}

.success-message, .error-message { display: none; font-size: 14px; margin-bottom: 15px; }
.success-message { color: #85e3ad !important; }
.error-message { color: #ff8080 !important; }


/* Estilos para los datos de contacto directos en la columna izquierda */
.contacto-datos-directos {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacto-datos-directos a {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #a8a39a;
  font-size: 15px;
  transition: color 0.3s ease;
}

.contacto-datos-directos a:hover {
  color: #D2AF56;
}

.contacto-datos-directos a i {
  color: #D2AF56;
  font-size: 20px;
  width: 24px;
  text-align: center;
}

/* Estilo específico para el textarea del mensaje */
.form-box textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 0;
  color: #f4f1ea;
  font-size: 16px;
  font-family: "Raleway", sans-serif;
  outline: none;
  resize: vertical;
  min-height: 80px;
  max-height: 150px;
  transition: border-color 0.3s ease;
}

.form-box textarea::placeholder {
  color: #66635e;
  font-weight: 300;
}

.form-box textarea:focus {
  border-color: #D2AF56;
}

/* WHATSAPP */
  
  #whatsapp-logo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform: scale(0);
  opacity: 0;
  pointer-events: none; /* Evita clics cuando está invisible */
}

/* Estado visible que activaremos con JS */
#whatsapp-logo.visible {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.logo-whatsapp {
  background-color: #4FCE5D;
  display: flex;
    height: 64px;
    width: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px;
  transition: transform 0.3s ease-in-out;
}

.logo-whatsapp:hover {
  transform: translateY(-2px) translateX(2px);
}

.logo-whatsapp-ru{
  background-color: #009DE1;
}

/* =========================================
   MEDIA QUERIES (Pantallas Medianas y Grandes / Escritorio)
   ========================================= */
@media (min-width: 868px) {
  .contacto-secc {
    padding: 80px 20px;
    min-height: 85vh;
  }

  .contacto-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
  }

  /* Línea divisoria central que aparece en desktop */
  .contacto-container::before {
    content: '';
    position: absolute;
    left: 45%;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: rgba(210, 175, 86, 0.2);
  }

  .contacto-info p:first-of-type {
    font-size: clamp(38px, 4vw, 56px);
  }

  .cta-form {
    width: auto; /* Vuelve a tamaño normal en desktop */
  }
}