:root {
  --color-primary: #2d7df6;
  --color-secondary: #f6931e;
  --color-text: #333;
  
  /*temas legales*/
  --color-primary: #003366;
  --color-accent: #00bfff;
  --color-accent-hover: #007acc;
  --color-text-dark: #333333;
  --color-text-muted: #666666;
  --color-bg-light: #f5faff;
  --color-white: #ffffff;
  --color-border: #cccccc;
  --color-success: #16a34a;
  --color-success-bg: #f0fdf4;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;
}



/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*TAGS*/
html { scrollbar-gutter: stable; }
p {
  margin: .5rem;
  font-size: 1.2rem;
}

/*ELEMENTS*/
.about,.services,.features-products,.blog{
  padding: 1.8rem .6rem;
}
/* footer CTA */
.carousel__footer {
  text-align: center;
  margin-top: 1rem;
}
.carousel__all-btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 28px;
  background: transparent;
  color: #0077b6;
  border: 2px solid #0077b6;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.carousel__all-btn:hover {
  background: #0077b6;
  color: #fff;
}
/* BASE HEADER */
.header {
  background-color: #012840;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: #00bfff;
  text-decoration: none;
}
.header__nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background: rgba(1, 40, 64, 1);
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
}
.header__nav--active {
  transform: translateX(0);
}
.header__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  text-align: center;
}
.header__item { /* para consistencia */
  position: relative;
}
.header__link {
  color: #fff;
  font-size: 1.3rem;
  text-decoration: none;
  transition: color 0.3s;
}
.header__link:hover:not(.header__link--cta) {
  color: #00bfff;
}
.header__link--cta {
  background: #00bfff;
  color: #012840;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: bold;
}
.header__link--cta:hover {
  background-color: #005fa3;
  color: white;
}
/* TOGGLE BUTTON */
.header__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  /*height: 24px;*/
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.header__toggle span {
  height: 3px;
  width: 100%;
  background: white;
  transition: all 0.3s ease;
  border-radius: 2px;
}
.header__toggle--active span:nth-child(1) {
  /*transform: rotate(45deg) translateY(11px);*/
  transform: translateY(8px) rotate(45deg);
}
.header__toggle--active span:nth-child(2) {
  opacity: 0;
}
.header__toggle--active span:nth-child(3) {
  /*transform: rotate(-45deg) translateY(-11px);*/
  transform: translateY(-8px) rotate(-45deg);
}
.header__item--has-submenu {
  position: relative;
}
.header__link--toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.header__submenu-icon {
  transition: transform 0.25s ease;
}
.header__item--open .header__submenu-icon {
  transform: rotate(180deg);
}
.header__submenu {
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding: 0;
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.header__item--open > .header__submenu {
  max-height: 600px;
}
.header__submenu-link {
  display: block;
  padding: 0.6rem 0;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.header__submenu-link:hover { color: #00bfff; }
/* Hero */
.hero {
  background: url('/assets/img/web/fondo.jpg') center center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 5rem 1rem 6rem;
  position: relative;
  overflow: hidden;
}
.hero__content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero__title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  font-weight: 700;
  line-height: 1.2;
}
.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.4);
  font-weight: 400;
}
.hero__cta {
  font-size: 1.2rem;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  background-color: #007acc;
  color: white;
  box-shadow: 0 6px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.hero__cta:hover,
.hero__cta:focus {
  background-color: #005fa3;
  outline: none;
}
.about {
  /*padding: 4rem 1rem 3rem;*/
  background-color: #f9f9f9;
}
.about .container {
  max-width: 900px;
  margin: 0 auto;
}
.about__text {
  font-size: 1.125rem;
  max-width: 750px;
  margin: 1rem auto 0;
  color: #444;
  text-align: center;
  line-height: 1.6;
}
.services {
  /*padding: 4rem 1rem 3rem;*/
}
.services .container {
  max-width: 1200px;
  margin: 0 auto;
}
.section__title {
  font-size: 2rem;
  font-weight: 700;
  color: #003366;
  text-align: center;
  margin-bottom: 15px 0px;
}
.services__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
.service-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 1rem;
  text-align: center;
}
.service-card:hover,
.service-card:focus-within {
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.service-card__img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #003366;
  margin: 1rem 1rem 0.5rem;
}
.service-card__desc {
  color: #555;
  font-size: 1rem;
  padding: 0 1rem 1rem;
  line-height: 1.4;
}
.services__more {
  display: block;
  max-width: 200px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  background-color: #e1eaff;
  color: #007acc;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: 1px solid #007acc;
}
.services__more:hover,
.services__more:focus {
  background-color: #007acc;
  color: white;
  outline: none;
}

.blog .container {
  max-width: 1200px;
  margin: 0 auto;
}
.blog__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
.blog-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
.blog-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1rem 1.5rem 0.5rem;
  color: #003366;
}
.blog-card__excerpt {
  font-size: 1rem;
  color: #555;
  padding: 0 1.5rem 1rem;
  line-height: 1.4;
}
.blog-card__link {
  margin: 0 1.5rem 1.5rem;
  color: #007acc;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
.blog-card__link:hover,
.blog-card__link:focus {
  color: #005fa3;
  outline: none;
}
.blog__more {
  display: block;
  max-width: 200px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  background-color: #e1eaff;
  color: #007acc;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: 1px solid #007acc;
}
.blog__more:hover,
.blog__more:focus {
  background-color: #007acc;
  color: white;
  outline: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  /*padding: 0 1.5rem;*/
}
/* FOOTER */
.footer {
  background-color: #011f3f;
  color: #cfd8e8;
  padding: 4rem 2rem 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
.footer__wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
}
.footer__brand,
.footer__nav,
.footer__contact {
  flex: 1 1;
  min-width: 250px;
}
.footer__desc {
  margin-bottom: 1.5rem;
  color: #a8b8d3;
}
.footer__copy {
  font-size: 0.85rem;
  color: #6b7a99;
  margin-top: 2rem;
}
.footer__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #00bfff;
  border-bottom: 2px solid #00bfff;
  padding-bottom: 0.25rem;
}
.footer__list,
.footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__list li,
.footer__contact-list li {
  margin-bottom: 0.75rem;
}
.footer__link {
  color: #cfd8e8;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer__link:hover,
.footer__link:focus {
  color: #00bfff;
  outline: none;
}
.footer__link--cta {
  font-weight: 700;
  color: #00bfff;
  background-color: transparent;
  border: 2px solid #00bfff;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.footer__link--cta:hover,
.footer__link--cta:focus {
  background-color: #00bfff;
  color: #011f3f;
  outline: none;
}
.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a8b8d3;
}
.footer__icon {
  flex-shrink: 0;
}
.footer__link--whatsapp {
  color: #25d366;
  font-weight: 600;
}
.footer__link--whatsapp:hover,
.footer__link--whatsapp:focus {
  text-decoration: underline;
  outline: none;
}
.footer__legal {
  margin-top: 3rem;
  padding: 1.5rem 1rem 0 1rem;
  text-align: center;
}
.footer__legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem; 
}
.footer__legal-link {
  font-size: 0.85rem; 
  color: #888888; 
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer__legal-link:hover {
  color: #00bfff;
  text-decoration: underline;
}
/*temas legales*/
.legal-section {
  /*padding: 5rem 1rem;*/
  background-color: #fafbfc;
}
.legal-section .container {
  max-width: 900px;
  margin: 0 auto;
}
.legal-card {
  background-color: var(--color-white);
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.05);
  border: 1px solid #e2e8f0;
}
.legal-card__title {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 0.5rem;
}
.legal-card__subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  font-style: italic;
}
.legal-card__content h2 {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.legal-card__content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-dark);
  text-align: justify;
  margin-bottom: 1.25rem;
}
.legal-card__list {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.legal-card__list li {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  line-height: 1.6;
  color: var(--color-text-dark);
}
.legal-card__list a {
  color: var(--color-accent-hover);
  text-decoration: none;
}
.legal-card__list a:hover {
  text-decoration: underline;
}
/*Modal*/
.modal-global {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-global--active {
    opacity: 1;
    visibility: visible;
}
.modal-global__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}
.modal-global__container {
    position: relative;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1.2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-global--active .modal-global__container {
    transform: scale(1);
}
.modal-global__icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}
.modal-global__title {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
}
.modal-global__message {
    color: #5d6d7e;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.modal-global__button {
    background: #2d7df6; 
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-global__button:hover {
    background: #1c5980;
}
.modal-global--success .modal-global__icon::before { content: '✅'; }
.modal-global--error .modal-global__icon::before { content: '❌'; }
.modal-global--error .modal-global__button { background: #e74c3c; }
/*cookies*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #003366;
  color: #ffffff;
  padding: 1.5rem 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 3000;
  box-sizing: border-box;
  display: none; /* Controlado por JS */
}

.cookie-banner--show {
  display: block;
}

.cookie-banner__container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cookie-banner__text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  color: #e2e8f0;
}

.cookie-banner__link {
  color: #00bfff;
  text-decoration: none;
}

.cookie-banner__link:hover {
  text-decoration: underline;
}

.cookie-banner__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.cookie-banner__btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s, color 0.3s;
  text-align: center;
}

.cookie-banner__btn--primary {
  background-color: #00bfff;
  color: #ffffff;
}

.cookie-banner__btn--primary:hover {
  background-color: #007acc;
}

.cookie-banner__btn--secondary {
  background-color: #334155;
  color: #e2e8f0;
}

.cookie-banner__btn--secondary:hover {
  background-color: #1e293b;
}

.cookie-banner__btn--link {
  background: none;
  color: #e2e8f0;
  text-decoration: underline;
}

.cookie-banner__btn--link:hover {
  color: #00bfff;
}

/* --- ESTILOS DEL MODAL DE CONFIGURACIÓN --- */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 51, 102, 0.6);
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal--show {
  opacity: 1;
  visibility: visible;
}

.cookie-modal__content {
  background-color: #ffffff;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-modal__title {
  color: #003366;
  margin-top: 0;
  font-size: 1.5rem;
}

.cookie-modal__text {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}

.cookie-modal__options {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cookie-modal__option {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
}

.cookie-modal__option:last-child {
  border-bottom: none;
}

.cookie-modal__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: bold;
  color: #003366;
}

.cookie-modal__checkbox {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: #00bfff;
}

.cookie-modal__desc {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0.4rem 0 0 2rem;
  line-height: 1.4;
}

.cookie-modal__buttons {
  margin-top: 1.5rem;
  text-align: right;
}

.cookie-modal__btn {
  background-color: #003366;
  color: #ffffff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cookie-modal__btn:hover {
  background-color: #00bfff;
}
/*MOBILE*/
@media (min-width: 576px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .legal-section {
    padding: 4rem 1rem;
  }
}
@media (min-width: 768px) {
  .header__toggle {
    display: none;
  }
  .header__nav {
    position: static;
    transform: none;
    height: auto;
    width: auto;
    background: none;
    padding: 0;
    overflow: visible;
  }
  .header__list {
    flex-direction: row;
    gap: 1.5rem;
    text-align: left;
    width: auto;
  }
  .header__submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #012840;
    min-width: 200px;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    text-align: center;
    z-index: 200;
    max-height: none;
    overflow: visible;
  }
  .header__item--open > .header__submenu { display: block; }
  .header__submenu-link {
    padding: 0.6rem 1rem;
  }
  .header__submenu-link:hover {
    background-color: #00bfff;
    color: #012840;
  }
  .hero__title {
    font-size: 3.6rem;
  }
  .hero__subtitle {
    font-size: 1.5rem;
  }
  .footer__wrapper {
    flex-direction: column;
    gap: 2rem;
  }
  .footer__legal-list {
    flex-direction: row;
    gap: 1.5rem;
  }
  .legal-card { padding: 3.5rem 3rem; }
  .cookie-banner__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .cookie-banner__text {
    flex: 1;
    padding-right: 2rem;
  }
  .cookie-banner__buttons {
    flex-direction: row;
    width: auto;
  }
  .cookie-banner__btn {
    width: auto;
  }
}
@media (min-width: 992px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .products__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .blog__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
