/* ===== Variables de marca (Solar Experts) ===== */
:root {
  --color-black: #000000;
  --color-yellow: #FFE60D;
  --color-white: #FFFFFF;
  --color-gray-dark: #1a1a1a;
  --color-gray-light: #f4f4f4;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ===== Reset básico ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  color: var(--color-black);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-yellow);
  color: var(--color-black);
}

.btn-primary:hover {
  background-color: var(--color-black);
  color: var(--color-yellow);
  border-color: var(--color-yellow);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* ===== Encabezado ===== */
.site-header {
  background-color: var(--color-black);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.logo img {
  height: 68px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--color-white);
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--color-yellow);
}

.header-cta {
  padding: 8px 20px;
}

/* ===== Hero ===== */
.hero {
  background-color: var(--color-black);
  color: var(--color-white);
  text-align: center;
  padding: 80px 0 100px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 16px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-yellow);
  margin-bottom: 8px;
  font-weight: 600;
}

.hero-highlight {
  font-size: 1.4rem;
  margin-bottom: 32px;
  font-weight: 700;
}

/* ===== Galería ===== */
.gallery {
  padding: 70px 0;
  text-align: center;
  background-color: var(--color-gray-light);
}

.gallery h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  padding: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 45%);
  pointer-events: none;
}

.gallery-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background-color: var(--color-yellow);
  color: var(--color-black);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 1;
}

/* ===== Lightbox (foto ampliada) ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: 85%;
  max-height: 85vh;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.15);
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-arrow:hover {
  background-color: var(--color-yellow);
  color: var(--color-black);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ===== Testimonios ===== */
.testimonials {
  padding: 70px 0;
  text-align: center;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.testimonials-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.carousel-viewport {
  overflow: hidden;
  flex: 1;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.carousel-track {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  transition: transform 0.45s ease;
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-black);
  background-color: var(--color-white);
  color: var(--color-black);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-arrow:hover {
  background-color: var(--color-yellow);
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  background-color: var(--color-white);
}

.testimonial-card {
  background-color: var(--color-gray-light);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: left;
  flex: 0 0 calc((100% - 48px) / 3);
  transition: transform 0.45s ease, opacity 0.45s ease, box-shadow 0.45s ease;
  opacity: 0.75;
}

.testimonial-card.is-center {
  transform: scale(1.08);
  opacity: 1;
  background-color: var(--color-white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  position: relative;
  z-index: 2;
}

.testimonial-stars {
  color: var(--color-yellow);
  text-shadow: 0 0 1px #b8960a;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.testimonial-text {
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.9rem;
}

/* ===== Preguntas Frecuentes ===== */
.faq {
  padding: 70px 0;
  background-color: var(--color-gray-light);
}

.faq h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}

.faq-tabs {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.faq-tab-btn {
  background-color: var(--color-white);
  border: 2px solid var(--color-black);
  border-radius: 30px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--color-black);
}

.faq-tab-btn.is-active {
  background-color: var(--color-black);
  color: var(--color-yellow);
}

.faq-panel[hidden] {
  display: none;
}

.faq-item {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 12px;
  text-align: left;
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.3rem;
  color: var(--color-black);
  background-color: var(--color-yellow);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin-top: 14px;
  color: #444;
  font-size: 0.95rem;
}

/* ===== Cotización (formulario) ===== */
.quote {
  padding: 70px 0;
  text-align: center;
}

.quote h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.quote-form {
  max-width: 600px;
  margin: 30px auto 0;
  text-align: left;
}

.quote-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-field {
  flex: 1;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-field input {
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-base);
}

.form-field input:focus {
  outline: none;
  border-color: var(--color-yellow);
}

.quote-form .btn {
  width: 100%;
  border: none;
  font-size: 1rem;
}

.quote-form-privacy {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #777;
  text-align: center;
}

.quote-form-privacy a {
  color: #555;
  text-decoration: underline;
}

.quote-form-message {
  margin-top: 14px;
  font-weight: 600;
  min-height: 1.2em;
}

.quote-form-message.success {
  color: #1a7a1a;
}

.quote-form-message.error {
  color: #b00020;
}

/* ===== Página legal (Aviso de Privacidad) ===== */
.legal-page {
  padding: 60px 0 80px;
}

.legal-page .container {
  max-width: 750px;
}

.legal-page h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.legal-updated {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin: 30px 0 12px;
}

.legal-page p,
.legal-page li {
  color: #333;
  margin-bottom: 12px;
  line-height: 1.6;
}

.legal-page ul {
  padding-left: 20px;
}

.legal-page a {
  color: var(--color-black);
  text-decoration: underline;
}

/* ===== Contacto ===== */
.contact {
  padding: 70px 0;
  background-color: var(--color-gray-light);
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 30px;
}

.contact-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 2px solid transparent;
}

.contact-card:hover {
  border-color: var(--color-yellow);
}

.contact-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #777;
}

.contact-value {
  font-weight: 700;
  color: var(--color-black);
}

.contact-whatsapp {
  background-color: var(--color-yellow);
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-row a {
  font-weight: 600;
  color: var(--color-black);
  text-decoration: underline;
}

/* ===== Botón flotante de WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--color-yellow);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 200;
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--color-gray-dark);
  color: var(--color-white);
  text-align: center;
  padding: 32px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a,
.footer-social a {
  color: var(--color-white);
}

.footer-nav a:hover,
.footer-social a:hover {
  color: var(--color-yellow);
}

.footer-social {
  display: flex;
  gap: 20px;
}

/* ===== Quiénes Somos ===== */
.about {
  padding: 70px 0;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  max-width: 700px;
  margin: 0 auto 20px;
}

.about-lead {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #444;
  font-size: 1.05rem;
}

.about-credentials {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.credential-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 260px;
}

.credential-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-black);
  background-color: var(--color-yellow);
  padding: 4px 16px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.credential-label {
  font-size: 0.95rem;
  color: #333;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background-color: var(--color-gray-light);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: left;
}

.value-card h3 {
  color: var(--color-black);
  border-left: 4px solid var(--color-yellow);
  padding-left: 10px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.value-card p {
  font-size: 0.95rem;
  color: #444;
}

/* ===== Servicios ===== */
.services {
  padding: 70px 0;
  background-color: var(--color-gray-light);
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-lead {
  max-width: 600px;
  margin: 0 auto 40px;
  color: #444;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
}

.service-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 28px;
  border-top: 4px solid var(--color-yellow);
}

.service-tag {
  display: inline-block;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--color-black);
}

.service-card p {
  color: #444;
  font-size: 0.95rem;
}

/* ===== Garantías y Equipos ===== */
.warranties {
  padding: 70px 0;
  text-align: center;
}

.warranties h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.subsection-title {
  font-size: 1.2rem;
  margin: 40px 0 20px;
}

.brands-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-pill {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
}

.warranty-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.warranty-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 220px;
}

.warranty-years {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-black);
  border: 3px solid var(--color-yellow);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 12px;
}

.warranty-label {
  font-size: 0.95rem;
  color: #444;
}

/* ===== Responsive: celulares ===== */
@media (max-width: 768px) {
  .header-inner {
    justify-content: center;
    text-align: center;
  }

  .main-nav ul {
    justify-content: center;
    gap: 16px;
  }

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

  .hero-highlight {
    font-size: 1.15rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .about-credentials {
    gap: 24px;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .warranty-grid {
    gap: 24px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .testimonial-card {
    flex: 0 0 100%;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

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

  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}
