/*
 * Style sheet for Empresas CNP landing page
 *
 * This file defines the overall look and feel of the landing page used
 * while the main website is under construction. The design is kept
 * deliberately clean and minimalistic to ensure that visitors can
 * immediately understand the purpose of the page and access contact
 * information. All colours, spacing and typography have been
 * hand‑tuned to match the supplied mock‑ups. The primary typeface
 * used throughout the document is "Quicksand", loaded via Google
 * Fonts in the HTML head of the page.
 */

/* Reset default browser styles for margin and padding to ensure
   consistent rendering across browsers */
html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* Contain the entire layout within a central wrapper for easy
   centering and responsive scaling */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    padding-top: 40px;
    padding-bottom: 20px;
    text-align: center;
}

header img.logo {
    max-width: 320px;
    height: auto;
}

/* Hero section with main message and contact options */
.hero {
    text-align: center;
    padding: 30px 0;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #313131;
}

.hero p.subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-buttons a {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

/* WhatsApp button styled with the official green colour */
.contact-buttons a.whatsapp {
    background-color: #25d366;
    color: #ffffff;
}

.contact-buttons a.whatsapp:hover {
    background-color: #1da851;
}

/* Telephone link styled subtly to differentiate from the button */
.contact-buttons a.phone {
    background-color: #eeeeee;
    color: #333333;
    border: 1px solid #dddddd;
}

.contact-buttons a.phone:hover {
    background-color: #e2e2e2;
}

/* Grid layout for the categories */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    padding: 20px 0 40px;
}

.category {
    text-align: center;
    text-decoration: none;
    color: #333333;
    transition: transform 0.2s ease;
}

.category:hover {
    transform: translateY(-5px);
}

.category .image-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
}

.category img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category .label {
    margin-top: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Footer styles */
footer {
    background-color: #f5f5f5;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #555555;
}

@media (max-width: 600px) {
    .category .image-wrapper {
        width: 120px;
        height: 120px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .contact-buttons a {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
}

/* Navigation menu styles */
nav.main-nav {
    background-color: #f9f9f9;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.95rem;
}
nav.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}
nav.main-nav ul li {
    margin: 0;
    padding: 0;
}
nav.main-nav a {
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}
nav.main-nav a:hover {
    text-decoration: underline;
    color: #25d366;
}


/* ===========================
   MENÚ RESPONSIVE (HAMBURGUESA)
   =========================== */

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.main-nav {
  background-color: #f9f9f9;
  border-bottom: 1px solid #e5e5e5;
}

/* Barra superior del nav (logo + botón hamburguesa en mobile) */
.main-nav .nav-bar {
  display: none; /* se activa en mobile */
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.main-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
}

.main-nav .nav-brand img {
  height: 36px;
  width: auto;
  display: block;
}

.main-nav .nav-brand span {
  font-weight: 600;
  font-size: 1rem;
}

.main-nav .nav-toggle {
  appearance: none;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.main-nav .nav-toggle:focus {
  outline: 2px solid rgba(37,211,102,0.35);
  outline-offset: 2px;
}

.main-nav .nav-toggle .bars {
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}

.main-nav .nav-toggle .bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}

.main-nav .nav-toggle .bars span:nth-child(1) { top: 0; }
.main-nav .nav-toggle .bars span:nth-child(2) { top: 5px; }
.main-nav .nav-toggle .bars span:nth-child(3) { top: 10px; }

.main-nav.is-open .nav-toggle .bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.main-nav.is-open .nav-toggle .bars span:nth-child(2) {
  opacity: 0;
}
.main-nav.is-open .nav-toggle .bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* Lista nav desktop */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.main-nav ul li { margin: 0; padding: 0; }

.main-nav a {
  font-weight: 500;
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  text-decoration: underline;
  color: #25d366;
}

/* Botón especial */
.main-nav .consulta_Web {
  background: #3ece3e;
  border-radius: 11px;
  padding: 8px 12px;
}

.main-nav .consulta_Web a {
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
}

.main-nav .consulta_Web a:hover {
  text-decoration: none;
  color: #fff !important;
  opacity: 0.95;
}

/* ===========================
   MOBILE
   =========================== */
@media (max-width: 768px) {
  /* mostramos bar con hamburguesa */
  .main-nav .nav-bar {
    display: flex;
  }

  /* ocultamos el ul en mobile, se abre con .is-open */
  .main-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .main-nav.is-open ul {
    display: flex;
  }

  .main-nav ul li {
    width: 100%;
    border-top: 1px solid #eaeaea;
  }

  .main-nav ul li a {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-align: center;
  }

  .main-nav .consulta_Web {
    width: 100%;
    border-radius: 0;
    padding: 0;
    background: #3ece3e;
  }

  .main-nav .consulta_Web a {
    padding: 14px 0;
  }
}


/* ===========================
   MENÚ RESPONSIVE (HAMBURGUESA)
   =========================== */

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.main-nav {
  background-color: #f9f9f9;
  border-bottom: 1px solid #e5e5e5;
}

/* Barra superior del nav (logo + botón hamburguesa en mobile) */
.main-nav .nav-bar {
  display: none; /* se activa en mobile */
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.main-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
}

.main-nav .nav-brand img {
  height: 36px;
  width: auto;
  display: block;
}

.main-nav .nav-brand span {
  font-weight: 600;
  font-size: 1rem;
}

.main-nav .nav-toggle {
  appearance: none;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.main-nav .nav-toggle:focus {
  outline: 2px solid rgba(37,211,102,0.35);
  outline-offset: 2px;
}

.main-nav .nav-toggle .bars {
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}

.main-nav .nav-toggle .bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}

.main-nav .nav-toggle .bars span:nth-child(1) { top: 0; }
.main-nav .nav-toggle .bars span:nth-child(2) { top: 5px; }
.main-nav .nav-toggle .bars span:nth-child(3) { top: 10px; }

.main-nav.is-open .nav-toggle .bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.main-nav.is-open .nav-toggle .bars span:nth-child(2) {
  opacity: 0;
}
.main-nav.is-open .nav-toggle .bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* Lista nav desktop */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.main-nav ul li { margin: 0; padding: 0; }

.main-nav a {
  font-weight: 500;
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  text-decoration: underline;
  color: #25d366;
}

/* Botón especial */
.main-nav .consulta_Web {
  background: #3ece3e;
  border-radius: 11px;
  padding: 8px 12px;
}

.main-nav .consulta_Web a {
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
}

.main-nav .consulta_Web a:hover {
  text-decoration: none;
  color: #fff !important;
  opacity: 0.95;
}

/* ===========================
   MOBILE
   =========================== */
@media (max-width: 768px) {
  /* mostramos bar con hamburguesa */
  .main-nav .nav-bar {
    display: flex;
  }

  /* ocultamos el ul en mobile, se abre con .is-open */
  .main-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .main-nav.is-open ul {
    display: flex;
  }

  .main-nav ul li {
    width: 100%;
    border-top: 1px solid #eaeaea;
  }

  .main-nav ul li a {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-align: center;
  }

  .main-nav .consulta_Web {
    width: 100%;
    border-radius: 0;
    padding: 0;
    background: #3ece3e;
  }

  .main-nav .consulta_Web a {
    padding: 14px 0;
  }
}

