/*!
Theme Name: Aaltem
Version: 2.0
*/

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

:root {
  --color-safety-red: #D32029;
  --color-dark-charcoal: #1a1a1a;
  --color-medium-gray: #4a4a4a;
  --color-light-gray: #f0f0f0;
  --color-white: #ffffff;
  --color-warning-orange: #ff8c00;
  --color-success: #28a745;
  
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --spacing-base: 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-dark-charcoal);
  line-height: 1.6;
  background-color: var(--color-white);
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 2px solid var(--color-safety-red);
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
}

nav a {
  color: var(--color-dark-charcoal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--color-safety-red);
}

.btn-cotizar {
  background: var(--color-safety-red);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-cotizar:hover {
  background: #b01820;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 32, 41, 0.3);
}

/* MOBILE MENU */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

#menu-checkbox {
  display: none;
}

@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 2px solid var(--color-safety-red);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #menu-checkbox:checked ~ nav {
    max-height: 300px;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
  }

  .menu-toggle {
    display: block;
  }

  .btn-cotizar {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

body {
  padding-top: 70px;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--color-dark-charcoal) 0%, #2a2a2a 100%);
  color: var(--color-white);
  padding: 100px 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="100" cy="100" r="80" fill="%23D3202920"/><circle cx="1100" cy="500" r="120" fill="%23D3202915"/></svg>');
  background-size: cover;
  opacity: 0.3;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.hero .subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  margin-bottom: 2rem;
  color: #e0e0e0;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--color-safety-red);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #b01820;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(211, 32, 41, 0.4);
}

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

.btn-secondary:hover {
  background: var(--color-safety-red);
  transform: translateY(-3px);
}

/* CONFIANZA */
.trust-bar {
  background: var(--color-light-gray);
  padding: 3rem 2rem;
}

.trust-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.trust-item {
  padding: 1.5rem;
}

.trust-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.trust-item h3 {
  color: var(--color-safety-red);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.trust-item p {
  font-size: 0.95rem;
  color: var(--color-medium-gray);
}

/* SERVICIOS */
.services {
  padding: 4rem 2rem;
  background: var(--color-white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--color-dark-charcoal);
  letter-spacing: -0.5px;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--color-light-gray);
  padding: 0;
  border-radius: 8px;
  border-left: 5px solid var(--color-safety-red);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.service-card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  display: none;
}

.service-card h3 {
  color: var(--color-safety-red);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--color-medium-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* POR QUÉ ELEGIRNOS */
.why-us {
  background: var(--color-dark-charcoal);
  color: var(--color-white);
  padding: 4rem 2rem;
}

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

.why-us .section-title {
  color: var(--color-white);
}

.why-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.why-item {
  padding: 1.5rem;
  border-left: 3px solid var(--color-safety-red);
}

.why-item h4 {
  color: var(--color-safety-red);
  margin-bottom: 0.75rem;
}

.why-item p {
  color: #e0e0e0;
  font-size: 0.95rem;
}

/* CTA FINAL */
.cta-final {
  background: linear-gradient(135deg, var(--color-safety-red) 0%, #a01820 100%);
  color: var(--color-white);
  padding: 4rem 2rem;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-final h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.cta-final .btn-primary {
  background: var(--color-white);
  color: var(--color-safety-red);
  font-weight: 700;
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

.cta-final .btn-primary:hover {
  background: #f0f0f0;
}

/* FORMULARIO */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: rgba(255,255,255,0.1);
  padding: 2rem;
  border-radius: 8px;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* FOOTER */
footer {
  background: var(--color-dark-charcoal);
  color: var(--color-white);
  padding: 3rem 2rem 1rem;
}

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

.footer-section h4 {
  color: var(--color-safety-red);
  margin-bottom: 1rem;
}

.footer-section p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.8;
}

.footer-section a {
  color: var(--color-safety-red);
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #999;
}

.footer-logo {
  text-align: center;
  margin-bottom: 2rem;
}

footer .footer-logo img {
  height: 88px;
  width: auto;
  object-fit: contain;
}

/* WHATSAPP FLOTANTE */
.whatsapp-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 999;
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* GALERÍA PRODUCTOS */
.gallery {
  padding: 4rem 2rem;
  background: var(--color-white);
}

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--color-light-gray);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 5px solid var(--color-safety-red);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.product-card-content {
  padding: 1.5rem;
}

.product-card h4 {
  color: var(--color-safety-red);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.product-card p {
  color: var(--color-medium-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* TABLA TIPOS */
.types-section {
  padding: 4rem 2rem;
  background: var(--color-light-gray);
}

.types-container {
  max-width: 1000px;
  margin: 0 auto;
}

.types-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.types-table th {
  background: var(--color-safety-red);
  color: var(--color-white);
  padding: 1rem;
  text-align: left;
  font-weight: 700;
}

.types-table td {
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.types-table tbody tr:last-child td {
  border-bottom: none;
}

.types-table tbody tr:hover {
  background: #f9f9f9;
}

.types-section .cta-button {
  text-align: center;
  margin-top: 3rem;
}

.types-section p {
  margin-top: 2rem;
  color: var(--color-medium-gray);
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 1023px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .types-table {
    display: block;
  }

  .types-table thead {
    display: none;
  }

  .types-table tbody {
    display: block;
  }

  .types-table tbody tr {
    display: block;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
  }

  .types-table td {
    display: block;
    padding: 0.75rem;
    text-align: left;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    padding-left: 40%;
  }

  .types-table td:last-child {
    border-bottom: none;
  }

  .types-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0.75rem;
    font-weight: 700;
    color: var(--color-safety-red);
    width: 35%;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 60px 1rem;
    min-height: 60vh;
  }

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

  .services-grid, .why-list {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }

  nav ul {
    gap: 1rem;
  }

  .whatsapp-floating {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 60px;
  }

  header {
    padding: 0.5rem;
  }

  .logo img {
    height: 42px;
  }

  nav ul {
    gap: 0.75rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .btn-cotizar {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .hero-buttons {
    gap: 0.5rem;
  }

  .btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* SIN OVERFLOW */
html, body {
  overflow-x: hidden;
}
