/* =========================================================
=                      IMPORTS / BASE                      =
========================================================= */

/* Bootstrap */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');

/* Body / tipografías / comportamiento general */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f6f8;
  color: #333;
  scroll-behavior: smooth;
}


/* =========================================================
=                        NAVBAR / LOGO                     =
========================================================= */

/* Logo en navbar */
.logo-navbar {
  height: 55px;          /* alto del logo */
  width: 110%;           /* ancho relativo (mantienes tu ajuste) */
  max-width: 200px;      /* límite en pantallas grandes */
  display: inline-block;
  vertical-align: middle;
}

/* Contenedor navbar */
.navbar {
  background-color: #002b5c;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1050;
}

/* Marca y estados */
.navbar-brand {
  color: white !important;
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
}
.navbar-brand:focus,
.navbar-brand:hover { color: white !important; }

/* Botón hamburguesa */
.navbar-toggler { border: none; background: transparent; }
.navbar-toggler:focus { outline: none; box-shadow: none; }

/* Ícono hamburguesa blanco */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Links de navegación */
.navbar-nav .nav-link {
  color: white;
  font-weight: 500;
  margin-left: 1rem;
  transition: color 0.3s;
  white-space: nowrap;
}
.navbar-nav .nav-link:hover { color: #00bfff; }


/* =========================================================
=                     BANNER (INTRO IMAGE)                 =
========================================================= */

.intro-image img {
  width: 100%;
  height: auto;
  max-height: 890px;
  object-fit: cover;
}


/* =========================================================
=                            HERO                          =
========================================================= */

.hero {
  position: relative;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("./Imagenes/infoconta.png") no-repeat center center;
  background-size: cover;
  background-position: 70% center; /* desplaza hacia el código */
  color: #fff;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}
.hero-content { max-width: 900px; }
.hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 30px; }
.hero p { font-size: 1.2rem; margin-bottom: 20px; }

/* CTA genérica */
.hero a.cta-button,
.cta-button {
  background-color: #00bfff;
  color: white;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s ease;
}
.cta-button:hover { background-color: #0094cc; }


/* =========================================================
=                     TITULARES DE SECCIÓN                 =
========================================================= */

.seccion-titulo i {
  font-size: 2rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  color: white;
}
.servicio {
  padding: 4rem 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.servicio h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* Separador decorativo */
.separator {
  height: 4px;
  background: linear-gradient(to right, #00bfff, #0077b6);
  border: none;
  margin: 0;
}


/* =========================================================
=                        SECCIÓN: SEGURIDAD                =
========================================================= */

.seguridad {
  background: url('./Imagenes/seguridad.png') center/cover no-repeat;
}
.seguridad::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}
.seguridad .contenido { position: relative; z-index: 1; }


/* =========================================================
=                          SECCIÓN: WEB                    =
========================================================= */

.web {
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url('./Imagenes/web.png') center/cover no-repeat;
}
.web::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}
.web .contenido { position: relative; z-index: 1; }


/* =========================================================
=                          SECCIÓN: APPS (y RPA)           =
========================================================= */

.apps, .rpa {
  background: #002b5c; /* mismo color del navbar */
  position: relative;
  color: #fff;
  padding: 4rem 2rem;
  overflow: hidden;
}


/* =========================================================
=                      SECCIÓN: CONTABILIDAD               =
========================================================= */

.contabilidad {
  background: linear-gradient(135deg, #1c2746, #2e4a7d);
  position: relative;
  color: #fff;
  padding: 4rem 2rem;
  overflow: hidden;
}
.contabilidad::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 0;
}
.contabilidad .contenido { position: relative; z-index: 1; }
.contabilidad .seccion-titulo {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
}
.contabilidad .seccion-titulo i {
  font-size: 2rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  color: #fff;
  opacity: 0.95;
}

/* Grid interno de contabilidad */
.contabilidad .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.contabilidad .feature-box {
  background-color: rgba(255, 255, 255, 0.10);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  flex: 1 1 calc(25% - 2rem);
  max-width: 260px;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.contabilidad .feature-box:hover {
  transform: translateY(-6px);
  background-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}
.contabilidad .feature-box i {
  font-size: 2.3rem;
  margin-bottom: 0.9rem;
  color: #00d2ff;
}
.contabilidad .feature-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: #fff;
}
.contabilidad .feature-box p {
  font-size: 1rem;
  line-height: 1.5;
  color: #e6e6e6;
  margin: 0;
}


/* =========================================================
=                   CARDS / GRID GENÉRICO                  =
========================================================= */

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.feature-box {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  flex: 1 1 calc(25% - 2rem);
  max-width: 250px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.feature-box:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}
.feature-box i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #00d2ff;
}
.feature-box p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* Títulos H3 con íconos (estilo global) */
h3 {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
h3 i { font-size: 2rem; opacity: 0.95; color: white !important; }


/* =========================================================
=                         CONTACTO                          =
========================================================= */

.contacto {
  background: #003366;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}
.contacto h2 { font-size: 2rem; margin-bottom: 1rem; }
.contacto p { font-size: 1.1rem; margin-bottom: 2rem; }

.contacto form {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contacto form input,
.contacto form select,
.contacto form textarea {
  padding: 0.75rem;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
}
.contacto form textarea {
  grid-column: 1 / 3;
  resize: none;
  height: 150px;
}
.contacto form button {
  grid-column: 1 / 3;
  background-color: #00bfff;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contacto form button:hover { background-color: #0077b6; }


/* =========================================================
=                           FOOTER                          =
========================================================= */

footer {
  background-color: #001d3d;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.95rem;
}
.footer-content a { color: #00bfff; text-decoration: none; }
.footer-content a:hover { text-decoration: underline; }


/* =========================================================
=                    FLOATING WHATSAPP / TOAST              =
========================================================= */

.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}
.floating-whatsapp:hover { transform: scale(1.1); }

#mensaje-exito { display: none; color: #0f0; font-weight: bold; margin-top: 1rem; }

.toast {
  position: fixed;
  top: 30px;
  right: 30px;
  background-color: #28a745;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  font-weight: bold;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeIn 0.5s forwards, fadeOut 0.5s 3.5s forwards;
}
.toast i { font-size: 1.5rem; }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); } }


/* =========================================================
=                         POPUP GENÉRICO                    =
========================================================= */

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.popup-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  color: #333;
  max-width: 400px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  animation: popupFade 0.4s ease-out;
}
.popup-content i { font-size: 2.5rem; color: #28a745; margin-bottom: 1rem; }
.popup-content button {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  border: none;
  background-color: #0077b6;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}
.popup-content button:hover { background-color: #005f91; }
@keyframes popupFade { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }


/* =========================================================
=                    MENÚ MÓVIL (TOGGLE)                    =
========================================================= */

.menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer; }
@media (max-width: 768px) { .menu-toggle { display: block; } }

.nav-links { display: none; flex-direction: column; width: 100%; background-color: #002b5c; margin-top: 1rem; padding-bottom: 1rem; }
.nav-links.show { display: flex; }
.nav-links a { margin: 0.5rem 1rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }


/* =========================================================
=                        RESPONSIVE                         =
========================================================= */

/* Hero */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
}

/* Cards responsivas (genérico) */
@media (max-width: 1024px) {
  .feature-box { flex: 1 1 calc(50% - 1rem); max-width: 100%; }
}
@media (max-width: 768px) {
  .feature-grid { flex-direction: column; align-items: center; }
  .feature-box { flex: 1 1 100%; max-width: 100%; }
}

/* Contabilidad (cards responsivas) */
@media (max-width: 1024px) {
  .contabilidad .feature-box { flex: 1 1 calc(50% - 2rem); max-width: 100%; }
}
@media (max-width: 768px) {
  .contabilidad .feature-grid { flex-direction: column; align-items: center; }
  .contabilidad .feature-box { flex: 1 1 100%; }
}

/* Formulario contacto responsivo */
@media (max-width: 768px) {
  .contacto form { grid-template-columns: 1fr; }
  .contacto form textarea,
  .contacto form button,
  .contacto form input,
  .contacto form select {
    grid-column: 1 !important;
    width: 100%;
  }
}

/* Imagen banner responsive extra */
.intro-image img { max-height: 860px; object-fit: cover; }

/* Footer en móvil */
@media (max-width: 768px) {
  footer { font-size: 0.85rem; }
  .footer-content p { margin: 0.5rem 0; }
}
