/* ==================== VARIABLES ==================== */
:root {
  --primary-color: #000000;
  --secondary-color: #C49A45;
  --tercerColor: #F2842F;
  --bancos: #FFF9F2;
  --greys: #BFC6C4;
  --font-family: system-ui, -apple-system, sans-serif;
  --font-famyly2: 'Times New Roman', Times, serif;
}

/* ==================== RESET ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #4b4d4c;
  color: var(--bancos);
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
}

/* ==================== TIPOGRAFÍA ==================== */
h1, h2 {
  font-family: var(--font-family);
  text-align: center;
  padding: 20px;
  color: var(--greys);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 2px;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  color: var(--tercerColor);
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

p {
  text-align: center;
  font-family: var(--font-famyly2);
  color: var(--bancos);
}

/* ==================== MENÚ ==================== */
.menu-Principal {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
  padding: 1rem 2rem;
  margin: 2rem 4rem;
  background-color: var(--primary-color);
  border-radius: 12px;
  flex-wrap: wrap;
  gap: 1rem;
}

.menu-Principal img {
  border-radius: 50%;
  object-fit: cover;
}

.menu-Principal ul {
  display: flex;
  justify-content: space-between;
  list-style: none;
  gap: 1rem;
  flex-wrap: wrap;
}

.menu-Principal a {
  text-decoration: none;
  color: var(--tercerColor);
  font-family: var(--font-family);
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease-in-out;
  display: inline-block;
}

.menu-Principal a:hover {
  color: var(--bancos);
  background-color: var(--tercerColor);
  border-radius: 6px;
}

/* ==================== CONTENIDO ==================== */
main {
  padding: 0 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.parrafo-inicial {
  margin: 1rem auto;
  max-width: 700px;
  font-size: 1.05rem;
}

section {
  margin: 2rem 0;
}

/* ==================== GRID DE SERVICIOS ==================== */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  padding: 1rem 0;
}

.container > section {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(242, 132, 47, 0.2);
}

/* ==================== TARJETAS DE SERVICIO ==================== */
.servicios {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.2rem 0;
  padding: 1rem;
  border-left: 3px solid var(--tercerColor);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.servicios:hover {
  transform: translateX(5px);
  background: rgba(0, 0, 0, 0.3);
}

.servicios img {
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.servicios p {
  text-align: left;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ==================== TIPOS DE GRÚA ==================== */
.tipos-grua {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(242, 132, 47, 0.2);
}

.tipos-grua p {
  max-width: 800px;
  margin: 0.8rem auto;
}

/* ==================== FOOTER ==================== */
footer {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--primary-color);
  text-align: center;
}

footer p {
  margin: 0.5rem 0;
  font-family: var(--font-family);
}

footer a {
  color: var(--tercerColor);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--bancos);
  text-decoration: underline;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .menu-Principal {
    margin: 1rem;
    flex-direction: column;
    padding: 1rem;
  }

  .menu-Principal ul {
    width: 100%;
    justify-content: center;
  }

  main {
    padding: 0 1rem;
  }

  .container {
    margin: 1rem 0;
    grid-template-columns: 1fr;
  }

  .container > section {
    padding: 1.2rem;
  }

  .tipos-grua {
    margin: 2rem 0;
    padding: 1.2rem;
  }

  .servicios {
    flex-direction: column;
    text-align: center;
  }

  .servicios p {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .menu-Principal ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
}


/* __________________________________________________________________ */
/* ==================== PÁGINAS LEGALES ==================== */
.legal-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.tituloSeccion {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.tituloSeccion h1 {
  color: var(--tercerColor);
  margin-bottom: 0.5rem;
}

.tituloSeccion .last-update {
  color: var(--greys);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.5rem;
}

.legal-section {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--tercerColor);
}

.legal-section h2 {
  color: var(--tercerColor);
  text-align: left;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  padding: 0;
}

.legal-section h3 {
  color: var(--greys);
  text-align: left;
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem 0;
}

.legal-section p {
  text-align: left;
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

.legal-section ul,
.legal-section ol {
  margin: 1rem 0 1rem 2rem;
  color: var(--bancos);
}

.legal-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-section strong {
  color: var(--tercerColor);
}

@media (max-width: 768px) {
  .legal-container {
    padding: 0 1rem;
  }

  .legal-section {
    padding: 1.2rem;
  }

  .legal-section h2 {
    font-size: 1.2rem;
  }

  .legal-section ul,
  .legal-section ol {
    margin-left: 1.2rem;
  }
}


/* __________________________________________________________________ */
/* formulario legal */


/* ==================== FORMULARIO LEGAL ==================== */
.form-legal {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.form-legal label {
  color: var(--greys);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  text-align: left;
}

.form-legal input[type="text"],
.form-legal input[type="email"],
.form-legal input[type="tel"],
.form-legal select,
.form-legal textarea {
  padding: 0.8rem;
  border: 1px solid rgba(191, 198, 196, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--bancos);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-legal input:focus,
.form-legal select:focus,
.form-legal textarea:focus {
  outline: none;
  border-color: var(--tercerColor);
}

.form-legal select option {
  background: #2a2a2a;
  color: var(--bancos);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400 !important;
  font-size: 0.9rem !important;
  line-height: 1.5;
  cursor: pointer;
  margin-top: 1rem;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-primary {
  margin-top: 1rem;
  padding: 0.9rem 2rem;
  background: var(--tercerColor);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-family);
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.form-note {
  font-size: 0.85rem;
  color: var(--greys);
  text-align: left !important;
  font-style: italic;
}

.mensaje-exito {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.15);
  border-left: 4px solid #22c55e;
  border-radius: 8px;
  color: #86efac;
  text-align: left;
  font-weight: 600;
}