/* palette: charcoal-coral */
:root {
  --primary-color: #1D2A3C;      /* botones, acentos, encabezados */
  --secondary-color: #FF6F61;    /* hero bg, secciones oscuras, footer */
  --accent-color: #F2D4C9;       /* iconos, hover, decoración */
  --background-color: #F8F8F8;   /* fondo secciones claras */
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(0,0,0,0.15);
  --shadow-color: rgba(0,0,0,0.1);
  --gradient-primary: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  --main-font: 'Lora', Georgia, serif;
  --alt-font: 'Poppins', sans-serif;
  
  /* border-style: sharp */
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-btn: 0px;
  
  /* shadow-style: flat */
  --shadow-card: none;
  --shadow-hover: none;
}

/* Animations */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important; /* Force sharp border-style */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--alt-font);
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* Typography Scale */
h1, h2, h3, h4 {
  font-family: var(--main-font);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: clamp(32px, 6vw, 64px);
}

h2 {
  font-size: clamp(24px, 4vw, 42px);
}

h3 {
  font-size: clamp(18px, 2.8vw, 28px);
}

p {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.7;
}

/* Header & Mobile Navigation */
header {
  background: var(--primary-color);
  position: relative;
  width: 100%;
  border-bottom: 2px solid var(--secondary-color);
  z-index: 1000;
}

.header-inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  cursor: pointer;
  z-index: 1001;
}

.burger-btn .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #f0f0f0;
  transition: transform 0.28s, opacity 0.28s;
}

#menu-toggle:checked + .burger-btn .bar:first-child {
  transform: translateY(7px) rotate(45deg);
}

#menu-toggle:checked + .burger-btn .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked + .burger-btn .bar:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--primary-color);
  z-index: 999;
  border-bottom: 2px solid var(--secondary-color);
}

#menu-toggle:checked ~ .site-nav {
  display: block;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 16px;
  list-style: none;
}

.site-nav a {
  color: #f0f0f0;
  font-family: var(--alt-font);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  padding: 8px 0;
}

.site-nav a:hover {
  color: var(--secondary-color);
}

@media (min-width: 768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    border-bottom: none;
  }
  .site-nav ul {
    flex-direction: row;
    padding: 0;
    gap: 28px;
  }
  .site-nav a {
    padding: 0;
  }
}

/* Hero Section (fullscreen-center variant) */
#hero {
  position: relative;
  height: 79vh;
  min-height: 500px;
  background: url('./img/bg.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 42, 60, 0.85); /* Primary color with high density opacity */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: #ffffff;
  animation: fade-up 0.8s ease-out;
}

.hero-title {
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-subtitle {
  color: var(--accent-color);
  font-size: clamp(16px, 2.2vw, 22px);
  max-width: 650px;
  margin: 0 auto;
}

/* CTA Button */
.btn-cta {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 14px 32px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--secondary-color);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}

.btn-cta:hover {
  background-color: transparent;
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Features Section (features-numbered) */
#features {
  padding: 48px 16px;
  background: var(--background-color);
}

@media (min-width: 768px) {
  #features {
    padding: 80px 24px;
  }
}

.section-title {
  font-family: var(--main-font);
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-card:nth-child(5) {
    grid-column: span 2;
  }
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 32px;
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary-color);
}

.feature-number {
  font-family: var(--main-font);
  font-size: 48px;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

/* About Section (img-overlap variant) */
#about {
  padding: 48px 16px;
  background: #ffffff;
}

@media (min-width: 768px) {
  #about {
    padding: 80px 24px;
  }
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
  }
}

.about-image-wrapper {
  position: relative;
}

.about-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--primary-color);
}

@media (min-width: 1024px) {
  .about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    z-index: -1;
  }
}

.about-text {
  padding: 20px 0;
}

/* Extra Section (expert-quote variant with dynamic-tech clip-path) */
#extra {
  padding: 60px 16px;
  background: var(--primary-color);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  #extra {
    padding: 100px 24px;
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
  }
}

.quote-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.quote-icon {
  font-size: 72px;
  color: var(--secondary-color);
  line-height: 1;
  margin-bottom: 20px;
  font-family: var(--main-font);
}

.quote-text {
  font-family: var(--main-font);
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.5;
  margin-bottom: 24px;
  font-style: italic;
  color: var(--background-color);
}

.quote-author {
  font-family: var(--alt-font);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color);
}

/* Testimonials Section (testimonials-cards) */
#testimonials {
  padding: 48px 16px;
  background: var(--background-color);
}

@media (min-width: 768px) {
  #testimonials {
    padding: 80px 24px;
  }
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: #ffffff;
  padding: 32px;
  border: 1px solid var(--border-color);
  transition: transform 0.25s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary-color);
}

.testimonial-stars {
  color: var(--secondary-color);
  font-size: 20px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-color);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Contact Section */
#contact {
  padding: 48px 16px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  #contact {
    padding: 80px 24px;
  }
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 {
  margin-bottom: 24px;
}

.contact-details {
  margin-top: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-item-icon {
  color: var(--secondary-color);
  font-size: 24px;
  margin-right: 16px;
  margin-top: 4px;
}

.contact-form-wrapper {
  background: var(--background-color);
  padding: 32px;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  font-family: var(--alt-font);
  color: var(--dark-color);
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary-color);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  background: var(--primary-color);
  color: #ffffff;
  padding: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--primary-color);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-submit:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* FAQ Section */
#faq {
  padding: 48px 16px;
  background: var(--background-color);
  border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  #faq {
    padding: 80px 24px;
  }
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 16px;
}

.faq-question {
  font-family: var(--main-font);
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.faq-answer {
  color: var(--text-color);
  line-height: 1.6;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: #ffffff;
  padding: 48px 16px 24px;
  border-top: 4px solid var(--secondary-color);
}

@media (min-width: 768px) {
  footer {
    padding: 64px 24px 32px;
  }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

@media (min-width: 768px) {
  .footer-links {
    flex-direction: row;
    gap: 24px;
  }
}

.footer-links a {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  width: 100%;
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}