//* === VARIABLES === */
:root {
  --primary: #00bcd4;
  --primary-dark: #0097a7;
  --bg: #f0f0f0;
  --text: #333;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === RESET === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === BODY === */
body {
  font-family: Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === HEADER === */
header {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* LOGO */
.logo img {
  width: 60px;
}

/* NAV */
nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  transition: 0.3s;
}

nav a:hover {
  background-color: white;
  color: black;
}

/* === CONTENIDO (FULL SCREEN CORREGIDO) === */
.contenido {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 110px 15px 40px; /* ajuste para header fijo */
  flex: 1;
}

/* TITULO */
h1 {
  font-size: 36px;
  color: #003366;
  margin-bottom: 30px;
}

/* === CONTACTO === */
.contacto-contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* TARJETAS */
.cuadro-info,
.formulario-contacto {
  flex: 1 1 350px;
  max-width: 500px;
  width: 100%;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: left;
}

/* INFO */
.contacto-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.contacto-item i {
  font-size: 22px;
  color: var(--primary);
}

.contacto-item h3 {
  margin: 0;
  color: #003366;
}

/* FORM */
.formulario-contacto label {
  display: block;
  margin: 15px 0 5px;
  font-weight: bold;
}

.formulario-contacto input,
.formulario-contacto textarea {
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* TEXTAREA */
textarea {
  resize: vertical;
}

/* FOCUS */
input:focus,
textarea:focus {
  outline: none;
  border: 2px solid var(--primary);
}

/* BOTÓN */
.formulario-contacto button {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.formulario-contacto button:hover {
  background: var(--primary-dark);
  transform: scale(1.03);
}

/* === MAPA FULL WIDTH === */
.mapa {
  width: 100%;
  margin: 40px 0;
}

.mapa iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* === MENSAJES === */
#listaContactos {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
}

.mensaje-card {
  background: white;
  padding: 15px;
  margin-bottom: 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.mensaje-card small {
  color: gray;
}

/* === FOOTER === */
footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: auto;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ============================= */
/* 📱 MÓVIL RESPONSIVE */
/* ============================= */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    gap: 10px;
  }

  nav {
    flex-direction: column;
    width: 100%;
  }

  nav a {
    width: 100%;
    justify-content: center;
  }

  h1 {
    font-size: 24px;
  }

  .contacto-contenedor {
    flex-direction: column;
  }

  .mapa iframe {
    height: 300px;
  }
}