/* Variables CSS (como los Global Colors de Oxygen) */
:root {
  --font-body: "Inter", sans-serif;
  --font-heading: "Inter", sans-serif;
  --color-primary: #235ba7;
  --color-dark: #1a233f;
  --color-text: #333;
  --clear-blue: #ddeaf4;
  --clear-blue-light: #f2f8fc;
  --font-main: "Inter", sans-serif;
  --max-width: 1200px;
}
/* ========================================
   TIPOGRAFÍA BASE
   ======================================== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
  text-decoration: none;
}

nav a {
  padding: 0.5rem;
  background: #ffffff00;
}

nav a:hover {
  background-color: var(--color-dark);
  color: #fff;
  border-radius: 5px;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #25d366; /* Color verde de WhatsApp */
  border-radius: 50%;
  padding: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-btn:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-btn svg {
  width: 24px;
  height: 24px;
}

/* Reset básico */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Tipografía fluida (adiós media queries para font-size) */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-dark);
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   LAYOUT Y CONTENEDORES
   ======================================== */
header {
  background: linear-gradient(180deg, #ddeaf4 0%, #f2f8fc 100%);
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem;
}

.container-col {
  display: flex;
  flex-direction: column;
  align-items: center;

  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem;
  gap: 2.5rem;
  text-align: center;
}

.subheader {
  background-color: var(--color-dark);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 1rem 2rem;
  gap: 2.5rem;
  flex-wrap: wrap;
}

section {
  padding: 0;
  width: 100%;
}

/* header */
.logo img {
  display: block;
  width: 100%;
  max-width: 300px;
}

.garant-card {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: fit-content;
  max-width: var(--max-width);
  color: #fff;
  gap: 1rem;
}

.accent-text {
  font-weight: 700;
  color: var(--clear-blue);
  text-transform: uppercase;
}

.accent-text::after {
  content: "\A";
  white-space: pre;
}

.hero-section {
  display: flex;
  flex-direction: column;
  padding: 8rem 0;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.622), rgba(0, 0, 0, 0.527)),
    url("../img/hero-section-background.webp") center center/cover no-repeat;
}

.hero-section h1 {
  text-align: center;
  color: white;
  font-weight: 500;
}
/* quienes somos */
.quienes-somos {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.q-s-sec {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: top;
  gap: 1rem;
  text-align: left;
  width: 75%;
}

.q-s-sec-img {
  width: 25%;
  height: 26rem;
  background: url("../img/mas-de-20-anos-trabajando-en-sistemas-de-climatizacion.webp")
    center center/cover no-repeat;
}

.bullets {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
  margin-top: 2rem;
}

.bullet {
  padding-top: 2rem;
  position: relative;
}

.bullet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  /* Ancho de la línea, ajústalo a tu gusto */
  height: 8px;
  /* Grosor de la línea */
  background-color: var(--color-dark);
  /* O el color que uses */
}

.bullet h4 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.bullet p {
  margin: 0;
  line-height: 1.2;
}
/* ========================================
  Filosofía section
======================================== */
.filosofia {
  background-color: var(--color-dark);
  color: white;
  padding: 5rem 0;
}

.filosofia h2 {
  margin-bottom: 1rem;
  color: white;
}

.filosofia-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3rem;
}

.filosofia-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.filosofia-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.filosofia-item:first-child {
  border-top: none;
  padding-top: 0;
}

.filosofia-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background-color: var(--color-primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filosofia-icon svg {
  width: 40px;
  height: 40px;
  color: white;
} /* Agregada la llave de cierre */

.filosofia-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: white;
}

.filosofia-content p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

/* ======================================== 
servicios
======================================== */

.servicios {
    background-color: white;
    padding: 5rem 0;
    position: relative;
}

.servicios-header {
    margin-bottom: 3rem;
}

.servicios-subtitle {
    color: var(--color-text-muted);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.servicio-card {
    background-color: var(--color-light);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.servicio-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    margin-left: auto;
    margin-right: auto;
}

.servicio-icon svg {
    width: 100%;
    height: 100%;
}

.servicio-card h3 {
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.servicio-card p {
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.bottom-services {
  background-color: var(--color-dark);
  color:white;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.5;
  text-align: center;
  padding: 4rem;
}
/* ======================================== 
Sectores
======================================== */

.sectores {
    background-color: var(--color-dark);
    color: white;
    padding: 5rem 0;
}

.sectores-header {
    text-align: center;
    margin-bottom: 4rem;
}

.sectores h2 {
    color: white;
    margin-bottom: 1rem;
}

.sectores-subtitle {
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin: 0 auto;
}

.sectores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.sector-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sector-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.sector-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--color-primary);
}

.sector-icon svg {
    width: 100%;
    height: 100%;
}

.sector-card h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.sector-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.sectores-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   Footer
   ======================================== */
.footer {
      background:
    linear-gradient(rgba(0, 0, 0, 0.948), rgba(0, 0, 0, 0.8)),
    url("../img/hero-section-background.webp") center center/cover no-repeat;
    color: white;
    padding: 5rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* ============ SECCIÓN IZQUIERDA ============ */
.footer-contact h2 {
    color: white;
    margin-bottom: 1rem;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--color-primary);
}

/* ============ FORMULARIO ============ */
.footer-form {
    background-color: rgba(6, 27, 72, 0.44);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.form-group select option {
    background-color: var(--color-dark);
    color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.form-checkbox label {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.form-checkbox a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Botón */
.form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.form-btn:hover:not(:disabled) {
    background-color: var(--color-primary-dark, #004494);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3);
}

.form-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mensajes de estado */
.form-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.form-message[hidden] {
    display: none;
}

.form-message svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.form-success {
    background-color: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.form-error {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.form-message p {
    margin: 0;
}

/* Validación nativa */
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not([value=""]) {
    border-color: rgba(239, 68, 68, 0.5);
}

/* ============ FOOTER BOTTOM ============ */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-bottom a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
}


/* Responsive */

/* ========================================
   TABLET (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
  .quienes-somos {
    flex-wrap: wrap;
  }

  .q-s-sec {
    width: 100%;
    text-align: center;
  }

  .q-s-sec-img {
    width: 80%;
    margin: 0 auto;
    max-height: 500px;
    min-height: 300px;
  }
  .bullet::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sectores-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ========================================
   MÓVIL (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 1.2rem;
  }

  .q-s-sec-img {
    width: 100%;
    margin: 0 auto;
    max-height: 500px;
    min-height: 300px;
  }

  .filosofia-item {
    flex-direction: column;
  }

  .filosofia-icon {
    width: 60px;
    height: 60px;
  }

  .filosofia-icon svg {
    width: 30px;
    height: 30px;
  }

  .servicios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .servicios-imagen-lateral {
        max-width: 100%;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-form {
        padding: 1.5rem;
    }
    
    .form-btn {
        width: 100%;
    }
}
