/* ========================================
   CubeRiNe - Estilos Principales
   ======================================== */

/* Variables de Color */
:root {
  --green-dark: #3D7068;
  --green-light: #7BB989;
  --green-bg: #E8F3F1;
  --beige-light: #F5EDE4;
  --beige-dark: #E8DCC8;
  --text: #333;
  --text-light: #555;
  --text-lighter: #666;
  --accent: #205081;
  --footer-bg: #2A4F48;
  --footer-text: #E8F3F1;
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.6;
}

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

/* ========================================
   Header y Navegación
   ======================================== */
#header {
  background: #fff;
  padding: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--green-dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  font-weight: bold;
}

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

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--green-dark);
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
  color: var(--green-light);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-intro {
  background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige-dark) 100%);
  padding: 100px 20px 60px;
  text-align: center;
}

.hero-intro h1 {
  font-size: 48px;
  color: var(--green-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-intro h2 {
  font-size: 24px;
  color: var(--text-light);
  font-weight: 400;
  margin-bottom: 25px;
}

.hero-intro p {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 30px;
  color: var(--text-lighter);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Banners con Parallax */
.hero-banner {
  height: 60vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.parallax {
  background-repeat: no-repeat;
}

/* ========================================
   Botones
   ======================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}

.btn-secondary:hover {
  background: var(--green-dark);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-block {
  width: 100%;
}

/* ========================================
   Secciones
   ======================================== */
section {
  padding: 100px 20px;
}

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 38px;
  color: var(--green-dark);
  margin-bottom: 15px;
}

.section-title p {
  font-size: 18px;
  color: var(--text-lighter);
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================
   Features Grid
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.features-grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: 0.3s ease;
  text-align: center;
}

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

.feature-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.feature-card h3 {
  color: var(--green-dark);
  font-size: 22px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-lighter);
  font-size: 15px;
  line-height: 1.6;
}

/* ========================================
   Soluciones (Living/Pro)
   ======================================== */
.solution-card {
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.solution-card.living {
  background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige-dark) 100%);
}

.solution-card.pro {
  background: linear-gradient(135deg, #E8F3F1 0%, #D4E7E3 100%);
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.solution-icon {
  width: 80px;
  height: 80px;
  background: var(--green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 36px;
}

.solution-card.pro .solution-icon {
  background: var(--green-light);
}

.solution-card h3 {
  font-size: 28px;
  color: var(--green-dark);
  margin-bottom: 15px;
  text-align: center;
}

.solution-desc {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.7;
}

.solution-features {
  list-style: none;
  padding: 0;
  color: var(--text-lighter);
  font-size: 15px;
  line-height: 2;
}

.pricing-highlight {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  border: 2px dashed var(--green-light);
}

.pricing-highlight p {
  font-size: 18px;
  color: var(--green-dark);
  font-weight: 600;
}

/* ========================================
   Destacado de Temperatura
   ======================================== */
.temperature-highlight {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
  border: 3px solid var(--green-light);
}

.temperature-highlight h3 {
  font-size: 32px;
  color: var(--green-dark);
  margin-bottom: 20px;
}

.temperature-highlight p {
  font-size: 20px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.temperature-tagline {
  color: var(--green-light) !important;
  font-style: italic;
  margin-top: 15px;
}

/* ========================================
   Sobre Nosotros
   ======================================== */
.about-card {
  background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige-dark) 100%);
  border-radius: 16px;
  padding: 50px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: 0 auto;
}

.about-highlight {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 25px;
}

.about-highlight strong {
  color: var(--green-dark);
  font-size: 20px;
}

.about-card p {
  font-size: 16px;
  color: var(--text-lighter);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-tagline {
  font-size: 18px;
  color: var(--green-dark) !important;
  font-weight: 600;
  text-align: center;
  margin-top: 30px;
  line-height: 1.8;
}

.visit-cta {
  margin-top: 50px;
  background: var(--green-bg);
  border-radius: 12px;
  padding: 35px;
  text-align: center;
  border: 2px solid var(--green-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.visit-cta h3 {
  font-size: 24px;
  color: var(--green-dark);
  margin-bottom: 15px;
}

.visit-cta p {
  font-size: 16px;
  color: var(--text-lighter);
  line-height: 1.7;
}

/* ========================================
   Proceso
   ======================================== */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  background: #fff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.step-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--green-light);
  min-width: 80px;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 24px;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.step-content p {
  font-size: 16px;
  color: var(--text-lighter);
  line-height: 1.7;
}

/* ========================================
   FAQ
   ======================================== */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--beige-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.faq-question {
  width: 100%;
  padding: 25px 30px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--green-dark);
  text-align: left;
  transition: 0.3s ease;
}

.faq-question:hover {
  background: rgba(125, 185, 137, 0.1);
}

.faq-icon {
  color: var(--green-light);
  font-size: 14px;
  transition: 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 30px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-lighter);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 30px 25px;
}

/* ========================================
   Sección de Contacto
   ======================================== */
.contact-section {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-light) 100%);
  color: #fff;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h2 {
  font-size: 38px;
  margin-bottom: 20px;
  color: #fff;
}

.contact-content > p {
  font-size: 20px;
  color: var(--footer-text);
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact-info {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 50px;
}

.contact-item {
  color: var(--footer-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  font-size: 24px;
}

.contact-item a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ========================================
   Footer
   ======================================== */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 20px 30px;
}

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

.footer-column h3 {
  color: var(--green-light);
  margin-bottom: 15px;
  font-size: 20px;
}

.footer-column p {
  font-size: 14px;
  line-height: 1.6;
  color: #D4E7E3;
  margin-bottom: 8px;
}

.copyright {
  border-top: 1px solid var(--green-dark);
  padding-top: 25px;
  text-align: center;
}

.copyright p {
  font-size: 14px;
  color: #A8C1BC;
}

/* ========================================
   Modal (Formulario de Contacto)
   ======================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--text-lighter);
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.modal-close:hover {
  color: var(--text);
}

.modal-content h2 {
  font-size: 28px;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.modal-subtitle {
  font-size: 16px;
  color: var(--text-lighter);
  margin-bottom: 30px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 16px;
  font-family: inherit;
  transition: 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(123, 185, 137, 0.1);
}

.form-input.error {
  border-color: #ff4444;
}

.error-message {
  display: block;
  color: #ff4444;
  font-size: 14px;
  margin-top: 5px;
}

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

/* Success Message */
.success-message {
  text-align: center;
  padding: 40px;
  color: var(--green-light);
}

.success-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.success-message p {
  font-size: 20px;
  color: var(--text);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .hero-intro h1 {
    font-size: 36px;
  }

  .hero-intro h2 {
    font-size: 20px;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .nav-links {
    justify-content: center;
  }

  .hero-banner {
    background-attachment: scroll;
  }

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

  .step-number {
    margin: 0 auto;
  }

  .temperature-highlight h3 {
    font-size: 24px;
  }

  .temperature-highlight p {
    font-size: 16px;
  }

  .about-card {
    padding: 30px;
  }

  .modal-content {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .hero-intro h1 {
    font-size: 28px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  section {
    padding: 60px 20px;
  }
}

/* ========================================
   Cookie Consent (blocking modal)
   ======================================== */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: none;
}

.cookie-modal[hidden] { display: none; }
.cookie-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2001;
}

.cookie-card {
  background: #fff;
  color: var(--text);
  width: min(560px, 92vw);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  padding: 24px 22px 18px;
}

.cookie-title { margin: 0 0 8px; font-size: 1.25rem; color: var(--green-dark); }
.cookie-text { margin: 0 0 16px; line-height: 1.55; color: var(--text-lighter); }
.cookie-subtext { margin: 10px 0 0; color: var(--text-light); font-size: .95rem; }

.cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Outline-style button variant matching your theme */
.cookie-btn-outline {
  background: #fff;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}

/* “More info” */
.cookie-more {
  background: transparent;
  border: 0;
  cursor: pointer;
  margin-top: 10px;
  text-decoration: underline;
  color: var(--text-lighter);
  padding: 6px 0;
}

.cookie-more-panel { margin-top: 4px; }

.cookie-settings-link {
  color: var(--footer-text);
  text-decoration: underline;
}

/* Disable page scroll while modal is open */
html.cookie-lock,
body.cookie-lock {
  overflow: hidden !important;
}

/* Focus ring for a11y */
.cookie-card :is(button, a):focus {
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
}
