:root {
  --primary: #0066cc;
  --primary-dark: #004c99;
  --secondary: #ff6b35;
  --secondary-dark: #e55a2b;
  --success: #10b981;
  --dark: #1a1a2e;
  --light: #f8fafc;
  --white: #ffff;
  --shadow: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Top Bar */
.top-bar {
  background: var(--dark);
  color: white;
  padding: 10px 0;
  font-size: 14px;
}

.top-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-item i {
  color: var(--secondary);
}

/* Header */
header {
  background: var(--white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: #333333;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.logo-text h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.logo-text p {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.header-cta {
  background: var(--secondary);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(255,107,53,0.4);
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255,107,53,0.6);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(0,102,204,0.97) 0%, rgba(0,76,153,0.97) 100%),
    url('https://placehold.co/1920x1080/0066cc/ffff?text=Cerrajero+Profesional') center/cover;
  color: white;
  padding: 100px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,107,53,0.2) 0%, transparent 50%);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero h2 {
  font-size: 56px;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero h2 span {
  color: var(--secondary);
  display: block;
}

.hero-subtitle {
  font-size: 22px;
  margin-bottom: 40px;
  opacity: 0.95;
  max-width: 700px;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.hero-cta-primary {
  background: var(--secondary);
  color: white;
  padding: 20px 45px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(255,107,53,0.5);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  animation: pulse-cta 2s infinite;
}

.hero-cta-primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255,107,53,0.6);
}

@keyframes pulse-cta {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.hero-cta-secondary {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  color: white;
  padding: 20px 45px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid rgba(255,255,255,0.3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-cta-secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}

/* Hero features: 4 cols (desktop), 3 cols (tablet), 2 cols (mobile) */
.hero-features {
  display: grid;
  gap: 25px;
  max-width: 1200px;
  margin-top: 30px;
  grid-template-columns: repeat(4, 1fr); /* desktop: 4 columnas */
}

/* Tablet: 3 columnas */
@media (max-width: 1024px) {
  .hero-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile: 2 columnas */
@media (max-width: 768px) {
  .hero-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hero-feature {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-feature i {
  font-size: 32px;
  color: var(--secondary);
}

.hero-feature-text {
  flex: 1;
}

.hero-feature strong {
  display: block;
  font-size: 16px;
  margin-bottom: 3px;
}

.hero-feature span {
  font-size: 13px;
  opacity: 0.9;
}

/* Trust Badges */
.trust-section {
  background: var(--white);
  padding: 40px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.trust-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--dark);
}

.trust-item i {
  font-size: 28px;
  color: var(--success);
}

.trust-number {
  font-size: 24px;
  color: var(--primary);
  font-weight: 800;
}

/* Services Section */
.services {
  padding: 90px 20px;
  background: var(--light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--secondary);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 42px;
  color: var(--dark);
  font-weight: 800;
  margin-bottom: 15px;
}

.section-description {
  font-size: 18px;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  padding: 40px 35px;
  border-radius: 20px;
  transition: all 0.4s;
  box-shadow: 0 5px 25px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.4s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: #333333;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  margin-bottom: 25px;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--dark);
  font-weight: 700;
}

.service-card p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-price {
  color: var(--secondary);
  font-weight: 700;
  font-size: 16px;
}

/* Why Choose Us */
.why-us {
  padding: 90px 20px;
  background: white;
}

/* Why grid: 3 cols desktop/tablet large, 2 cols móvil, 1 col muy pequeño */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* desktop/tablet grande: 3 columnas */
  gap: 35px;
  margin-top: 50px;
  align-items: stretch; /* asegura que las tarjetas llenen la altura de la fila */
}

/* Asegurar que cada tarjeta ocupa toda la altura para igualarlas */
.why-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

/* Responsive: 2 columnas en pantallas móviles */
@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Móviles muy pequeños: 1 columna */
@media (max-width: 420px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: 15px;
  transition: all 0.3s;
}

.why-item:hover {
  background: var(--light);
}

.why-icon {
  width: 90px;
  height: 90px;
  background: #333333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 40px;
  color: white;
  box-shadow: 0 10px 30px rgba(0,102,204,0.3);
}

.why-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--dark);
  font-weight: 700;
}

.why-item p {
  color: #666;
  line-height: 1.7;
}

/* FAQ Section */
.faq {
  padding: 90px 20px;
  background: var(--light);
}

.faq-container {
  max-width: 900px;
  margin: 50px auto 0;
}

.faq-item {
  background: white;
  margin-bottom: 20px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.faq-question {
  padding: 25px 30px;
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
  cursor: pointer;
  cursor: default; /* changed to disable pointer cursor for FAQ questions */
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

.faq-question:hover {
  background: var(--light);
  color: var(--primary);
}

.faq-question i {
  color: var(--secondary);
  transition: transform 0.3s;
}

.faq-answer {
  padding: 0 30px 25px;
  color: #666;
  line-height: 1.8;
  display: block;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Testimonials */
.testimonials {
  padding: 90px 20px;
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--light);
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.06);
  position: relative;
  transition: all 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.quote-icon {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 50px;
  color: var(--primary);
  opacity: 0.1;
}

.stars {
  color: #fbbf24;
  font-size: 18px;
  margin-bottom: 20px;
}

.testimonial-text {
  color: #444;
  font-style: italic;
  margin-bottom: 25px;
  line-height: 1.8;
  font-size: 15px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: #333333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
}

.author-info strong {
  display: block;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 3px;
}

.author-info span {
  font-size: 13px;
  color: #666;
}

/* Contact Form Section */
.contact-section {
  padding: 90px 20px;
  background: var(--light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
  align-items: center;
}

.contact-info h3 {
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 20px;
  font-weight: 800;
}

.contact-info p {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.8;
  font-size: 16px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.contact-method-icon {
  width: 60px;
  height: 60px;
  background: #333333;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.contact-method-info strong {
  display: block;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 5px;
}

.contact-method-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  background: var(--secondary);
  color: white;
  padding: 18px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
  background: #333333;
  color: white;
  padding: 90px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,107,53,0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 44px;
  margin-bottom: 20px;
  font-weight: 800;
}

.cta-section p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-button {
  background: var(--secondary);
  color: white;
  padding: 22px 50px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(255,107,53,0.4);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.cta-button:hover {
  background: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255,107,53,0.6);
}

.cta-button-secondary {
  background: white;
  color: var(--primary);
}

.cta-button-secondary:hover {
  background: var(--light);
  color: var(--primary-dark);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 20px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--secondary);
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 18px;
}

.footer-section p,
.footer-section a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  line-height: 1.7;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--secondary);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-icon {
  width: 50px;
  height: 50px;
  background: #333333;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 800;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  color: #999;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.floating-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.3);
  text-decoration: none;
  transition: all 0.3s;
  animation: float 3s ease-in-out infinite;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-phone {
  background: var(--secondary);
  color: white;
}

.floating-whatsapp {
  background: #25d366;
  color: white;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 968px) {
  .hero h2 {
    font-size: 40px;
  }

  .section-title {
    font-size: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .top-bar-content {
    justify-content: center;
    text-align: center;
  }

  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .hero {
    padding: 80px 20px 60px;
  }

  .hero h2 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .floating-buttons {
    bottom: 20px;
    right: 20px;
  }

  .floating-btn {
    width: 55px;
    height: 55px;
    font-size: 24px;
  }
}
/* Consent checkbox styling inside forms */
.form-group.consent {
  margin-bottom: 20px;
  font-size: 14px;
}

.consent-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #444;
  line-height: 1.4;
}

.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--secondary); /* color del check en navegadores compatibles */
}

.form-group.consent a {
  color: var(--primary);
  text-decoration: underline;
}
/* Contact grid: 3 columnas en escritorio, 2 en tablet, 1 en móvil */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 30px;
  align-items: start;
}

/* Tarjeta de contacto */
.contact-card {
  background: #fff; /* o tu variable: var(--card-bg) */
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 6px 20px rgba(20,20,40,0.06);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-height: 140px;
}

/* Icono grande */
.contact-card-icon {
  font-size: 28px;
  color: var(--primary, #e03b3b); /* usa tu color primario */
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.03);
  border-radius: 8px;
}

/* Cuerpo de la tarjeta */
.contact-card-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #111;
}

.contact-card-body p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #555;
}

/* Enlaces CTA estilo botón/Link */
.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--primary, #e03b3b);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

/* Hover */
.contact-cta:hover { opacity: 0.95; transform: translateY(-1px); }

/* Responsivo */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    flex-direction: row;
    gap: 14px;
  }
}