/* ===============================
   VARIABLES DE COLOR (RIBATECH)
================================ */
:root {
  --ribatech-azul: #1b3661;        /* azul oscuro elegante */
  --ribatech-azul-claro: #2e4368;  /* hover suave */
  --ribatech-acento: #3f8fa3;      /* turquesa apagado */
  --ribatech-turquesa: #1aa0bf;
  --ribatech-gris: #f2f2f2;
  --ribatech-texto: #222;
}

/* ===============================
   CONTENEDOR GENERAL
================================ */
main.contacto {
  background: var(--ribatech-gris);
  padding: 60px 20px;
  text-align: justify;
}

.contacto {
  max-width: 1100px;
  margin: 0 auto;
}

/* ===============================
   HEADER
================================ */
.contacto-header {
  margin-bottom: 40px;
}

.contacto-header h1 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ribatech-azul);
}

.contacto-header p {
  font-size: 14px;
  color: var(--ribatech-texto);
  line-height: 1.5;
}

/* ===============================
   GRID
================================ */
.contacto-content {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}

/* ===============================
   TARJETAS DE INFORMACIÓN
================================ */
.contacto-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  font-size: 14px;
}

.info-card {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
  
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.info-card .icono {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--ribatech-acento);
}

.info-card h4 {
  font-size: 16px;
  color: var(--ribatech-azul);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 14px;
  color: var(--ribatech-texto);
  line-height: 1.5;
}

/* ===============================
   FORMULARIO EN TARJETA
================================ */
.contacto-form {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contacto-form h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--ribatech-azul);
}

.contacto-form p {
  font-size: 14px;
  margin-bottom: 20px;
  color: var(--ribatech-texto);
}

/* ===============================
   FORM Y CAMPOS (manteniendo tu estilo)
================================ */
.contacto-form form {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
}

.field {
  width: 100%;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #999;
  font-size: 12px;
}

.form-row input,
.form-row textarea,
.contacto-form select,
.contacto-form input[name="ubicacion"] {
  width: 100%;
  padding: 10px 8px;
  font-size: 13px;
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus,
.contacto-form select:focus,
.contacto-form input[name="ubicacion"]:focus {
  outline: none;
  border-color: var(--ribatech-azul);
}

/* ===============================
   CHECKBOX
================================ */
.form-row.check {
  display: flex;
  gap: 8px;
  font-size: 12px;
  background: #f0efea;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-row.check input[type="checkbox"] {
  appearance: auto !important;
  width: 16px !important;
  height: 16px !important;
  margin: 4px 0 0 0 !important;
}

.form-row.check label {
  cursor: pointer;
  color: var(--ribatech-texto);
  line-height: 1.8;
}

/* ===============================
   ERRORES
================================ */
.error {
  display: none;
  font-size: 11px;
  color: #c00000;
  margin-top: 4px;
}

input.error-field,
textarea.error-field,
select.error-field,
input[name="ubicacion"].error-field {
  border-color: #c00000;
}

/* ===============================
   BOTÓN
================================ */
button {
  background: var(--ribatech-acento);
  color: #fff;
  border: none;
  padding: 12px 35px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 15px;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: var(--ribatech-turquesa);
  transform: translateY(-2px);
}

/* ===============================
   MICROCOPY
================================ */
.form-note {
  font-size: 11px;
  color: #666;
  margin-top: 10px;
}

/* ===============================
   MAPA
================================ */
.mapa {
  margin-top: 60px;
}

.mapa iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 8px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .contacto-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-row {
    flex-direction: column;
  }

  .form-row.check {
    flex-direction: row;
  }

  button {
    width: 100%;
    text-align: center;
  }
}

/* ===============================
   CHECKBOX ESTILIZADO
================================ */
.form-row.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  background: #f2f2f2; /* gris suave Ribatech */
  padding: 12px 15px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  transition: border-color 0.3s, background 0.3s;
}

.form-row.check:hover {
  background: #e6e6e6; /* efecto hover suave */
  border-color: var(--ribatech-azul-claro);
}

.form-row.check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ribatech-azul);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: background 0.3s, border-color 0.3s;
}

/* ===============================
   CHECKBOX
================================ */
.form-row.check {
  display: flex;
  gap: 8px;
  font-size: 12px;
  background: #f0efea;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-row.check input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;

  width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  margin: 4px 0 0 0 !important;

  display: inline-block !important;
  visibility: visible !important;
}

.form-row.check label {
  cursor: pointer;
  color: var(--ribatech-texto);
  line-height: 1.8;
}
/* Responsive */
@media (max-width: 768px) {
  .form-row.check {
    flex-direction: row;
    align-items: flex-start;
  }
}