/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #1d2939;
  background: #ffffff;
  line-height: 1.6;
}

img {
  width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea {
  font-family: inherit;
}


/* =========================
   VARIABLES
========================= */

:root {
  --primary: #1769aa;
  --primary-dark: #0d4f82;
  --secondary: #f3f8fc;
  --dark: #14202b;
  --text: #667085;
  --white: #ffffff;
  --border: #e4e7ec;

  --container: 1180px;

  --radius: 14px;

  --shadow:
    0 10px 30px rgba(0, 0, 0, 0.08);
}


/* =========================
   GENERAL
========================= */

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

section {
  padding: 100px 0;
}

.section-title {
  max-width: 700px;
  margin: 0 auto 55px;
  text-align: center;
}

.section-title span,
.about-text > span,
.cta span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.section-title h2 {
  margin-bottom: 15px;
  color: var(--dark);
  font-size: 40px;
  line-height: 1.2;
}

.section-title p {
  color: var(--text);
}


/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 25px;

  border-radius: 8px;

  font-size: 15px;
  font-weight: 700;

  transition: 0.3s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-white {
  color: var(--primary);
  background: var(--white);
}

.btn-white:hover {
  transform: translateY(-2px);
}


/* =========================
   HEADER
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.95);

  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(10px);
}

.header-content {
  min-height: 80px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.logo img {
  width: 150px;
  max-height: 55px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  color: #475467;
  font-size: 15px;
  font-weight: 600;

  transition: 0.3s;
}

.nav a:hover {
  color: var(--primary);
}


/* =========================
   HERO
========================= */

.hero {
  padding: 90px 0;
  background: var(--secondary);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}

.hero-tag {
  display: inline-block;

  margin-bottom: 20px;

  color: var(--primary);

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.hero h1 {
  max-width: 650px;

  margin-bottom: 25px;

  color: var(--dark);

  font-size: clamp(45px, 5vw, 70px);
  line-height: 1.05;
}

.hero h1 span {
  color: var(--primary);
}

.hero-text > p {
  max-width: 560px;

  margin-bottom: 35px;

  color: var(--text);

  font-size: 18px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-image img {
  height: 500px;
  object-fit: cover;
}


/* =========================
   FEATURES
========================= */

.features {
  background: var(--white);
}

.features-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

.feature-card {
  padding: 35px 30px;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  background: var(--white);

  transition: 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);

  box-shadow: var(--shadow);

  border-color: transparent;
}

.feature-icon {
  width: 55px;
  height: 55px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 22px;

  border-radius: 12px;

  background: var(--secondary);

  font-size: 25px;
}

.feature-card h3 {
  margin-bottom: 10px;

  color: var(--dark);

  font-size: 20px;
}

.feature-card p {
  color: var(--text);
}


/* =========================
   SERVICES
========================= */

.services {
  background: var(--secondary);
}

.services-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

.service-card {
  overflow: hidden;

  background: var(--white);

  border-radius: var(--radius);

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.service-image {
  overflow: hidden;
}

.service-image img {
  height: 250px;
  object-fit: cover;

  transition: 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 30px;
}

.service-content h3 {
  margin-bottom: 12px;

  color: var(--dark);

  font-size: 21px;
}

.service-content p {
  margin-bottom: 20px;

  color: var(--text);
}

.service-content a {
  color: var(--primary);
  font-weight: 700;
}


/* =========================
   ABOUT
========================= */

.about-content {
  display: grid;

  grid-template-columns: 1fr 1fr;

  align-items: center;

  gap: 80px;
}

.about-image {
  overflow: hidden;

  border-radius: 20px;
}

.about-image img {
  height: 500px;

  object-fit: cover;
}

.about-text h2 {
  margin-bottom: 25px;

  color: var(--dark);

  font-size: 42px;
  line-height: 1.2;
}

.about-text p {
  margin-bottom: 18px;

  color: var(--text);
}

.about-list {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 15px;

  margin-top: 30px;

  color: var(--dark);

  font-weight: 600;
}


/* =========================
   CTA
========================= */

.cta {
  padding: 70px 0;

  color: var(--white);

  background: var(--primary);
}

.cta-content {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 40px;
}

.cta span {
  margin-bottom: 8px;

  color: rgba(255, 255, 255, 0.75);
}

.cta h2 {
  margin-bottom: 10px;

  font-size: 38px;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
}


/* =========================
   CONTACT
========================= */

.contact-grid {
  display: grid;

  grid-template-columns: 0.8fr 1.2fr;

  gap: 70px;

  align-items: start;
}

.contact-info {
  display: flex;

  flex-direction: column;

  gap: 30px;
}

.contact-item {
  display: flex;

  align-items: center;

  gap: 18px;
}

.contact-icon {
  width: 55px;
  height: 55px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: var(--secondary);

  font-size: 22px;
}

.contact-item h3 {
  margin-bottom: 3px;

  color: var(--dark);
}

.contact-item p {
  color: var(--text);
}

.contact-form {
  display: flex;

  flex-direction: column;

  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;

  padding: 16px 18px;

  border: 1px solid var(--border);

  border-radius: 8px;

  outline: none;

  font-size: 15px;

  resize: vertical;

  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

.contact-form button {
  border: none;

  cursor: pointer;
}


/* =========================
   FOOTER
========================= */

.footer {
  padding: 50px 0;

  color: rgba(255, 255, 255, 0.8);

  background: var(--dark);
}

.footer-content {
  display: grid;

  grid-template-columns: 1fr 1fr 1fr;

  align-items: center;

  gap: 30px;
}

.footer-logo img {
  width: 130px;

  margin-bottom: 15px;

  filter: brightness(0) invert(1);
}

.footer-logo p {
  font-size: 14px;
}

.footer-links {
  display: flex;

  justify-content: center;

  gap: 25px;

  font-size: 14px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  text-align: right;

  font-size: 13px;
}


/* =========================
   WHATSAPP
========================= */

/* WHATSAPP */
.whatsapp-float {
  position: fixed; /* te faltaba esto */
  right: 18px;
  bottom: 18px;
  width: 55px;
  height: 55px;
  background: #25D366; /* verde WhatsApp */
  color: #FFFFFF;
  border-radius: 50%; /* para que sea circular */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 9999;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

  .nav {
    gap: 15px;
  }

  .btn-header {
    display: none;
  }

  .hero-content,
  .about-content {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .hero-image {
    order: -1;
  }

  .features-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-copy {
    text-align: center;
  }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

  section {
    padding: 70px 0;
  }

  .container {
    width: min(100% - 30px, var(--container));
  }

  .header-content {
    min-height: 70px;
  }

  .logo img {
    width: 120px;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-text > p {
    font-size: 16px;
  }

  .hero-image img {
    height: 350px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .features-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-image img {
    height: 350px;
  }

  .about-text h2 {
    font-size: 32px;
  }

  .about-list {
    grid-template-columns: 1fr;
  }

  .cta-content {
    flex-direction: column;

    align-items: flex-start;
  }

  .cta h2 {
    font-size: 30px;
  }

  .cta .btn {
    width: 100%;
  }

  .contact-grid {
    gap: 40px;
  }

  .whatsapp {
    right: 18px;
    bottom: 18px;

    width: 55px;
    height: 55px;
  }

}