/* ============================================
   ALQUILAPLAT - CSS PROFESIONAL
   Colores: Blanco, Rojo Corporativo (#d32f2f), Azul (#4A90E2), Gris
   ============================================ */

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

:root {
  --color-primary: #4A90E2;
  --color-primary-dark: #357ABD;
  --color-red: #d32f2f;
  --color-white: #FFFFFF;
  --color-dark: #1A1A1A;
  --color-gray-light: #F5F5F5;
  --color-gray-medium: #CCCCCC;
  --color-gray-dark: #666666;
  --color-text: #333333;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

h1 { font-size: 2.2rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.8rem; margin-bottom: 1rem; margin-top: 1.5rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; margin-top: 1rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   CONTENEDOR Y LAYOUT
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 2rem;
}

.col {
  flex: 1;
  min-width: 260px;
}

.col-2 {
  flex: 0 0 calc(50% - 12px);
}

.col-3 {
  flex: 0 0 calc(33.333% - 16px);
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */

header {
  background-color: var(--color-white);
  border-bottom: 3px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 70px;
  width: auto;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: color 0.3s ease;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: var(--color-primary);
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--color-primary);
}

.header-contact a {
  font-weight: bold;
  white-space: nowrap;
  font-size: 0.9rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 2px solid var(--color-primary);
  border-radius: 4px;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--color-primary);
  padding: 0.2rem 0.5rem;
  flex-shrink: 0;
}

/* HEADER RESPONSIVE */
@media (max-width: 900px) {
  .header-contact {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
    padding: 0.5rem 0;
    position: relative;
  }

  .logo img {
    height: 55px;
  }

  .mobile-menu-btn {
    display: block;
    margin-left: auto;
  }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-gray-medium);
    padding: 0.5rem 0;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--color-gray-light);
    width: 100%;
    display: block;
  }

  nav a:last-child {
    border-bottom: none;
  }

  .header-contact {
    display: none;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 3.5rem 0;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.hero-image {
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.hero h1 {
  color: var(--color-white);
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero p,
.hero .hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  color: var(--color-white);
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem 0;
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-text {
    text-align: center;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p,
  .hero .hero-subtitle {
    font-size: 1rem;
  }
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 3px 8px rgba(74,144,226,0.35);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(74,144,226,0.4);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

.btn-red {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 3px 8px rgba(211,47,47,0.35);
}

.btn-red:hover {
  background: #b71c1c;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
    text-align: center;
  }

  .btn {
    padding: 0.75rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* ============================================
   SECCIONES
   ============================================ */

section {
  padding: 3rem 0;
}

section.light-bg {
  background-color: var(--color-gray-light);
}

section.dark-bg {
  background-color: var(--color-dark);
  color: var(--color-white);
}

section.dark-bg h2,
section.dark-bg h3,
section.dark-bg p {
  color: var(--color-white);
}

section.dark-bg a {
  color: var(--color-primary);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.05rem;
  color: var(--color-gray-dark);
  margin: 0;
}

@media (max-width: 768px) {
  section {
    padding: 2rem 0;
  }
}

/* ============================================
   TARJETAS
   ============================================ */

.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-medium);
  border-radius: 6px;
  padding: 1.75rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
}

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

.card h3 {
  margin-top: 0;
  color: var(--color-primary);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

/* ============================================
   LISTAS
   ============================================ */

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
}

.list-check {
  list-style: none;
  margin-left: 0;
}

.list-check li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.list-check li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* ============================================
   TABLAS
   ============================================ */

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  min-width: 400px;
}

th {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--color-gray-medium);
}

tr:hover {
  background-color: var(--color-gray-light);
}

/* ============================================
   FORMULARIOS
   ============================================ */

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--color-text);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-gray-medium);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background-color: #fff;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74,144,226,0.15);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

.form-error {
  color: #d32f2f;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.4rem;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin: 0;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 90px;
  width: auto;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 1.4rem;
  border-radius: 50%;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   UTILIDADES
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }
.text-muted { color: var(--color-gray-dark); }
.text-primary { color: var(--color-primary); }
.text-red { color: var(--color-red); }

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--color-primary); }
.breadcrumb span { color: var(--color-gray-dark); }

/* ============================================
   IMÁGENES RESPONSIVAS
   ============================================ */

.img-responsive {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.img-center {
  display: block;
  margin: 0 auto;
}

.img-gallery {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.img-gallery img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 100%;
  height: auto;
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background-color: #25D366;
  color: white;
  border-radius: 50px;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* ============================================
   RESPONSIVE GENERAL
   ============================================ */

@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }

  .col-2, .col-3 {
    flex: 0 0 100%;
  }

  .img-gallery img {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.2rem; }

  .container {
    padding: 0 15px;
  }

  table {
    font-size: 0.85rem;
  }
}
