/* ==========================================================================
   OTRAS PAGINAS CSS
   Estilos para paginas generales: privacidad, nosotros, contacto, etc.
   Usa junto con main.css
   ========================================================================== */

/* Variables */
:root {
    --naranja: #e8945a;
}

/* ==========================================================================
   HEADER - Estilos adicionales para header en paginas generales
   ========================================================================== */

header{
  transition: box-shadow 1s ease;
}

.menu-2{
  position: absolute;
}

header>#escritorio {
  width: 90%;
}

header>#escritorio>ul>aside{
  background: var(--negro);
}

header>#escritorio>ul>aside>ul>li>a{
  color: var(--blanco);
}

header>#escritorio>.botones-esc:first-of-type {
  margin-left: 0;
}

header> #escritorio> ul {
  width: calc(100% - 450px);
  justify-content: space-between;
}

header> #escritorio> #btn-demo {
  cursor: pointer;
}

/* ==========================================================================
   PORTADA - Seccion principal igual que productos
   ========================================================================== */

#portada {
  width: 100%;
  height: fit-content;
  max-width: none;
  padding-top: 100px;
  padding-bottom: 60px;
  background-color: var(--negro);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Líneas animadas de fondo */
#portada .animation-wrapper {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  height: calc(75% - 100px);
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

#portada .geo-line {
  position: absolute;
  left: -50%;
  width: 200%;
  height: 200%;
  border-radius: 40%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.15);
  animation: waveMove 30s infinite linear;
}

#portada .line-1 { bottom: -160%; border-radius: 45%; animation-duration: 40s; opacity: 0.6; }
#portada .line-2 { bottom: -165%; border-radius: 43%; border-width: 1px; animation-duration: 35s; animation-direction: reverse; opacity: 0.5; }
#portada .line-3 { bottom: -170%; border-radius: 40%; border-width: 3px; animation-duration: 25s; opacity: 0.3; }
#portada .line-4 { bottom: -155%; border-radius: 48%; animation-duration: 45s; animation-direction: reverse; opacity: 0.4; }

@keyframes waveMove {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#portada > h2,
#portada > h1,
#portada > p,
#portada > a,
#portada > img {
  position: relative;
  z-index: 2;
}

#portada > img{
  max-width: 1000px;
}

#portada > h2{
  font-weight: 700;
  color: var(--blanco);
  font-size: 1rem;
  width: 100%;
  max-width: 700px;
  line-height: 1.5;
  margin-bottom: 10px;
  text-align: center;
}

#portada > h1 {
  font-weight: 600;
  color: var(--blanco);
  font-size: 2.1rem;
  line-height: 3rem;
  margin-bottom: 10px;
  width: 100%;
  max-width: 900px;
  text-align: center;
}

#portada > h1 > span {
  color: var(--naranja);
}

#portada > p {
  font-weight: 400;
  color: var(--blanco);
  font-size: 1.3rem;
  width: 100%;
  max-width: 750px;
  line-height: 1.5;
  text-align: center;
  margin: 10px 0;
}

#portada > a {
  width: 90%;
  text-align: center;
  padding: 25px .6%;
  background: var(--naranja);
  border-radius: 10px;
  font-weight: 600;
  color: var(--blanco);
  font-size: 1.2em;
  max-width: 433px;
  box-sizing: border-box;
  margin-top: 40px;
  text-decoration: none;
  margin-bottom: 40px;
}

/* Product Top - Banner superior */
.product-top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-top .center {
    max-width: 800px;
    margin: 0 auto;
}

.product-top .text h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-top .text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

/* Waves SVG */
.product-top .waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
}

.product-top .parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.product-top .parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.product-top .parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.product-top .parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.product-top .parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* Blog Content - Contenido principal */
section {
    padding: 20px 20px;
}

.blog-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px;
}

.blog-content-main {
    margin-bottom: 40px;
}

.blog-content-main h2 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.blog-content-main p {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.blog-content-main a {
    color: #667eea;
    text-decoration: none;
    word-break: break-all;
}

.blog-content-main a:hover {
    text-decoration: underline;
}

/* Lista con bullets */
.blog-content-main ul.bullets {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.blog-content-main ul.bullets li.content {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

.blog-content-main ul.bullets li.content::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 1.2rem;
    font-weight: bold;
}

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

@media (max-width: 768px) {
    .product-top {
        padding: 100px 15px 60px;
    }

    .product-top .text h1 {
        font-size: 1.8rem;
    }

    .blog-content {
        padding: 20px 15px;
    }

    .blog-content-main h2 {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 1000px) {
    #portada {
        margin-top: 75px;
    }

    header> #escritorio> .botones-esc:first-of-type {
        position: absolute;
        right: 7%;
        bottom: 25px;
        display: flex;
    }
    header>#escritorio>#logo-escritorio {
        margin-right: 0;
    }
    header>#escritorio>ul>li:first-of-type {
        margin-left: 0;
    }
}

@media screen and (max-width: 750px) {
    header{
        background-color: #fff;
    }
    /* Logo de color en móvil (fondo blanco) */
    header > #logo-movil > img {
        content: url('/blog/imagenes/logo-integratec.webp');
    }
    /* Hamburguesa de color oscuro en móvil (fondo blanco) */
    header > #icono-movil > span {
        background: var(--negro);
    }
    /* Nav abierto: logo y hamburguesa blancos */
    header.nav-open { background: transparent; }
    header.nav-open > #logo-movil > img {
        content: url('/index/img/logo-integratec-blanco.png');
    }
    header.nav-open > #icono-movil > span {
        background: var(--blanco);
    }
    #portada {
        flex-direction: column;
        align-items: center;
        margin-top: 75px;
    }
    #portada> img {
        width: 100%;
    }
    #portada> h1 {
        margin-right: 0;
        font-size: 1.9em;
        text-align: center;
    }
    #portada> p {
        margin-right: 0;
        text-align: center;
        font-size: 1.05rem;
    }
}
