:root {
  --color-primario: #1f4fa3;
  --color-secundario: #e5e5e5;
  --texto: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}


/* 1.1 typography */
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,700|Poppins:300,400,500,600,700|Work+Sans:400,500,600");
body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

p, .paragraph {
  font-weight: 400;
  font-size: 14px;
  line-height: 25px;
  font-family: "Open Sans", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  font-family: "Poppins", sans-serif;
}



body {
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--texto);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.header {
  background: var(--color-primario);
  color: #fff;
  padding: 1rem 0;
}

header {
  background-color: #1a1a1a; /* oscuro */
  color: #fff;               /* texto blanco */
  box-shadow: 0 2px 6px rgba(0,0,0,0.3); /* sombra */
  transition: background-color 0.3s, color 0.3s;
}
header a:hover {
  color: #fbbf24; /* amarillo cálido */
}

.hero {
  background: var(--color-secundario);
  padding: 3rem 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #ccc;
  text-align: center;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 55px;
  width: 100%;
  background-color: #1f2937;
  color: #fff;
  padding: 1rem;
  text-align: center;
  z-index: 50; /* encima de otros elementos */
}

/*formulario contacto*/
label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}


input,
textarea {
  width: 100%;
  padding: 0.6rem !important;
  border: 1px solid #ccc;
  font-size: 1rem;
}

button {
  background: var(--color-primario);
  color: #fff;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

.form-mensaje {
  margin-top: 1rem;
  min-height: 1.2em;
  font-weight: bold;
}

/* Fondo oscuro para todos los campos de formulario */
button, input, textarea, select {
    background-color: #1f2937; /* gris oscuro */
    color: #f3f4f6; /* texto claro */
    border: 1px solid #374151; /* borde sutil */
    border-radius: 0.375rem; /* bordes redondeados */
    padding: 0.5rem 0.75rem;
}

button:focus, input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #fbbf24; /* amarillo para indicar focus */
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3);
}


/*empresa*/
.empresa h2 {
  margin: 2rem 0 1rem;
}

.empresa h3 {
  margin-top: 1.5rem;
}

.empresa p,
.empresa ul {
  margin-top: 0.8rem;
}

.empresa ul {
  padding-left: 1.2rem;
}

/*servicios*/
.servicios-page h2 {
  margin: 2rem 0 1rem;
}

.servicios-page p {
  margin-bottom: 1.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

/*responsive*/
.header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav a {
  padding: 0.3rem 0;
}

@media (min-width: 768px) {
  .header .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .nav {
    flex-direction: row;
    gap: 1rem;
  }
}

h1 {
  font-size: 1.3rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.1rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.8rem;
  }
}

main.container {
  padding-top: 1.5rem;
}

section {
  margin-bottom: 2rem;
}

.opacity-control input[type="range"] {
  accent-color: #fbbf24; /* color institucional */
  cursor: pointer;
  transition: all 0.2s ease;
}

.opacity-control input[type="range"]::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fbbf24;
  cursor: pointer;
}

/*modo inactivo*/
.modeInactive {
  opacity: 1;
  transition: opacity 0.8s ease;
}

.modeInactive.inactivo {
  opacity: 0;
  pointer-events: none;
}

/* mensaje */
#modoInactivoMsg {
  opacity: 0;
  transition: opacity 0.5s ease;
}

#modoInactivoMsg.activo {
  opacity: 1;
}

#footer2 {
  position: absolute;
  bottom:0px;
  width: 100%;
  background-color: #fde047;
  color: #1f2937;
}

/* =========================
   MODO CLARO
========================= */

body.dark {
  background-color: #1f2937; /* fondo oscuro */
}

body.light {
  background-color: #f3f4f6; /* fondo claro solo central si quieres */
}


/* Secciones principales */
body.light section,
body.light .bg-gray-900 {
  background-color: #ffffff !important;
  color: #1f2937 !important;
}

/* Cards / cajas */
body.light .bg-gray-800 {
  background-color: #f3f4f6 !important;
  color: #1f2937 !important;
}

/* Textos */
body.light .text-gray-200,
body.light .text-gray-300 {
  color: #374151 !important;
}

body.light h1,
body.light h2,
body.light h3 {
  color: #111827;
}

/* Header */
body.light header {
  background-color: #ffffff;
  color: #1f2937;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

body.light header a {
  color: #374151;
}

body.light header a:hover {
  color: #ca8a04;
}

/* Footer fijo */
body.light footer {
  background-color: #f3f4f6;
  color: #374151;
}

/* Botones */
body.light button {
  background-color: #e5e7eb;
  color: #111827;
}

body.light button:hover {
  background-color: #d1d5db;
}

/* Inputs */
body.light input,
body.light textarea {
  background-color: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
}

/*alto de separacion*/
.responsive-height {
  height: 250px; /* altura por defecto */
}

/* Pantallas móviles en cualquier orientación */
@media (max-width: 768px) {
  .responsive-height {
    height: 650px; /* doble altura */
  }
}


