/* =====================================================
   IntrusionSystem AI
   Hoja de estilos principal
===================================================== */


:root{

    --primary:#2563eb;
    --primary-dark:#1d4ed8;

    --secondary:#0f172a;

    --text:#1e293b;

    --text-light:#64748b;

    --background:#f8fafc;

    --white:#ffffff;

    --card:#ffffff;

    --border:#e2e8f0;

    --shadow:0 15px 40px rgba(15,23,42,.08);

    --radius:18px;

    --transition:.35s ease;

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    background:var(--background);

    color:var(--text);

    overflow-x:hidden;

}

img{

    max-width:100%;

    display:block;

}

a{

    text-decoration:none;

}

ul{

    list-style:none;

}

section{

    padding:45px 0;

}

h1,h2,h3{

    color:var(--secondary);

}

h2{

    margin-bottom:18px;
    line-height:1.2;

}

h3{

    margin-bottom:15px;
    line-height:1.3;

}

p{

    line-height:1.8;
    margin-bottom:18px;

}

.container{

    max-width:1300px;

    margin:auto;

}

/* =====================================================
   NAVBAR
===================================================== */

header{

    width:100%;

    position:fixed;

    top:0;

    left:0;

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(14px);

    z-index:999;

    border-bottom:1px solid rgba(0,0,0,.05);

}

.navbar{

    max-width:1300px;
    margin:auto;
    height:85px;

    display:flex;
    justify-content:space-between;
    align-items:center;

}

.logo{

    display:flex;
    align-items:center;
    gap:14px;

}

.logo img{

    width:55px;

}

.logo span{

    font-size:26px;
    font-weight:700;
    color:var(--secondary);

}

.menu{

    display:flex;
    align-items:center;
    gap:35px;

    list-style:none;
    margin:0;
    padding:0;

}

.menu li{

    list-style:none;

}

.menu a{

    display:block;

    color:var(--text);
    text-decoration:none;
    font-weight:500;
    transition:var(--transition);

}

.menu a:hover{

    color:var(--primary);

}

.btn-nav{

    background:var(--primary);
    color:#fff;

    padding:14px 24px;

    border-radius:12px;

    font-weight:600;

    text-decoration:none;

    transition:var(--transition);

}

.btn-nav:hover{

    background:var(--primary-dark);

    transform:translateY(-2px);

}

/*======================================================
HERO 2.0
======================================================*/

.hero{

    max-width:1300px;

    margin:120px auto 0;

    min-height:85vh;

    display:grid;

    grid-template-columns:1fr 1fr;

    align-items:center;

    gap:80px;

    padding:40px;

    position:relative;

}

.hero::before{

    content:"";

    position:absolute;

    width:550px;

    height:550px;

    background:radial-gradient(circle,#60a5fa40,transparent 70%);

    top:-150px;

    right:-120px;

    z-index:-1;

}

.hero-left{

    animation:fadeLeft .8s ease;

}

.hero-right{

    display:flex;

    justify-content:center;

    animation:fadeRight .8s ease;

}

.hero-right img{

    width:100%;

    max-width:700px;

    border-radius:24px;

    border:1px solid #dbeafe;

    box-shadow:
        0 25px 70px rgba(37,99,235,.18),
        0 10px 25px rgba(0,0,0,.08);

    transition:.45s;

}

.hero-right img:hover{

    transform:translateY(-12px) scale(1.02);

}

.mini-title{

    display:inline-block;

    padding:10px 18px;

    border-radius:30px;

    background:#dbeafe;

    color:#2563eb;

    font-size:14px;

    font-weight:700;

    letter-spacing:1px;

    margin-bottom:25px;

}

.hero h1{

    font-size:68px;

    line-height:1.08;

    margin-bottom:28px;

}

.hero-text{

    font-size:20px;

    color:#64748b;

    line-height:1.8;

    margin-bottom:40px;

}

.mini-title{

    color:var(--primary);

    font-weight:700;

    letter-spacing:2px;

    margin-bottom:18px;

}

.hero h1{

    font-size:62px;

    line-height:1.15;

    margin-bottom:30px;

}

.hero-text{

    font-size:20px;

    color:var(--text-light);

    line-height:1.8;

    margin-bottom:35px;

}

/*======================================================
BOTONES HERO
======================================================*/

.hero-buttons{

display:flex;

gap:20px;

margin-bottom:45px;

flex-wrap:wrap;

}

.btn-primary{

display:inline-block;

background:linear-gradient(135deg,#2563eb,#3b82f6);

padding:18px 34px;

border-radius:14px;

color:white;

font-weight:600;

font-size:17px;

transition:.35s;

box-shadow:0 15px 35px rgba(37,99,235,.25);

}

.btn-primary:hover{

transform:translateY(-4px);

box-shadow:0 20px 45px rgba(37,99,235,.35);

}

.btn-secondary{

display:inline-block;

padding:18px 34px;

border:2px solid #2563eb;

border-radius:14px;

color:#2563eb;

font-weight:600;

font-size:17px;

transition:.35s;

background:white;

}

.btn-secondary:hover{

background:#2563eb;

color:white;

transform:translateY(-4px);

}

.hero-features{

display:grid;

grid-template-columns:repeat(2,1fr);

gap:18px 35px;

margin-top:15px;

}

.hero-features div{

display:flex;

align-items:center;

gap:12px;

padding:10px 0;

font-size:18px;

font-weight:600;

}

.hero-features i{

font-size:24px;

color:#2563eb;

}

.numbers{

max-width:1200px;

margin:70px auto;

display:grid;

grid-template-columns:repeat(4,1fr);

gap:30px;

background:none;

box-shadow:none;

}

.number{

background:white;

padding:35px;

border-radius:20px;

box-shadow:0 15px 40px rgba(15,23,42,.07);

border:1px solid #e2e8f0;

transition:.35s;

}

.number:hover{

transform:translateY(-8px);

box-shadow:0 25px 60px rgba(37,99,235,.12);

}

.number h2{

font-size:50px;

color:#2563eb;

margin-bottom:10px;

}

.number p{

font-size:17px;

color:#64748b;

}

/*======================================================
FEATURES
======================================================*/

.features{

background:#f8fafc;

text-align:center;

padding:60px 0;

}

.features h2{

font-size:46px;

margin-bottom:15px;

}

.subtitle{

color:#64748b;

font-size:20px;

margin-bottom:70px;

}

.cards{

display:grid;

grid-template-columns:repeat(3,1fr);

gap:25px;

}

.card{

background:white;

padding:45px;

border-radius:20px;

box-shadow:0 15px 35px rgba(0,0,0,.06);

transition:.35s;

cursor:pointer;

}

.card:hover{

transform:translateY(-10px);

}

.card i{

font-size:55px;

margin-bottom:25px;

color:#2563eb;

}

.card h3{

margin-bottom:18px;

font-size:24px;

}

.card p{

line-height:1.8;

color:#64748b;

}

/* ========================= */
/* COMO FUNCIONA             */
/* ========================= */

.process{

    padding:60px 8%;
    background:#f8fafc;

}

.process h2{

    text-align:center;
    font-size:42px;
    margin-bottom:15px;

}

.process .subtitle{

    text-align:center;
    color:#666;
    max-width:700px;
    margin:0 auto 60px;

}

.process-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;

}

.process-card{

    background:white;
    padding:40px 30px;
    border-radius:18px;
    text-align:center;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
    transition:.35s;

}

.process-card:hover{

    transform:translateY(-10px);

}

.process-card i{

    font-size:48px;
    color:#2563eb;
    margin-bottom:25px;

}

.process-card h3{

    margin-bottom:15px;
    font-size:24px;

}

.process-card p{

    color:#666;
    line-height:1.8;

}

/*======================================================
ANIMACIONES
======================================================*/

@keyframes fadeLeft{

from{

opacity:0;

transform:translateX(-60px);

}

to{

opacity:1;

transform:translateX(0);

}

}

@keyframes fadeRight{

from{

opacity:0;

transform:translateX(60px);

}

to{

opacity:1;

transform:translateX(0);

}

}

/*======================================
CONTACTO
======================================*/

.contact{

padding:60px 8%;

background:white;

text-align:center;

}

.contact h2{

font-size:48px;

margin-bottom:20px;

}

.contact p{

font-size:20px;

color:#64748b;

max-width:700px;

margin:auto;

margin-bottom:45px;

}

.contact form{

max-width:700px;

margin:auto;

display:flex;

flex-direction:column;

gap:20px;

}

.contact input,
.contact textarea{

padding:18px;

border:1px solid #dbe3ee;

border-radius:12px;

font-size:17px;

font-family:Poppins;

}

.contact textarea{

height:170px;

resize:none;

}

.contact button{

background:#2563eb;

color:white;

border:none;

padding:18px;

border-radius:12px;

font-size:18px;

font-weight:600;

cursor:pointer;

transition:.3s;

}

.contact button:hover{

background:#1d4ed8;

transform:translateY(-3px);

}

.demo-info{

margin-top:25px;

font-size:16px;

color:#475569;

font-weight:500;

}

.demo-counter{

margin-top:0;
font-size:1.5rem;
font-weight:600;
text-align:center;

}

.demo-counter span{
    color:#2b6cff;
    font-weight:700;
    font-size:1.8rem;

}

.demo-counter strong{

color:#2563eb;

font-size:24px;

}

.demo-info strong{

color:#2563eb;

}

.demo-section{

padding:60px 8%;

background:white;

text-align:center;

}

.demo-section .btn-primary{

display:inline-block;
margin-top:10px;
margin-bottom:45px;

}

.demo-section h2{

font-size:44px;

margin-bottom:20px;

}

.demo-section p{

font-size:20px;

color:#64748b;

max-width:750px;

margin:auto auto 45px;

line-height:1.8;

}

.demo-grid{

display:grid;

grid-template-columns:repeat(2,1fr);

gap:20px;

max-width:700px;

margin:50px auto;

text-align:left;

font-size:20px;

font-weight:600;

}

.demo-grid div{

padding:18px;

background:#f8fafc;

border-radius:14px;

}

.advantages{
    padding:60px 8%;
    background:#f8fafc;
    text-align:center;
}

.faq{
    padding:60px 8%;
    background:white;
}

.faq h2{
    text-align:center;
    font-size:46px;
    margin-bottom:50px;
}

/*======================================
CAPTURAS
======================================*/

.gallery{

padding:60px 8%;

background:#f8fafc;

text-align:center;

}

.gallery h2{

font-size:46px;

margin-bottom:15px;

}

.gallery .subtitle{

max-width:700px;

margin:0 auto 60px;

}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:30px;
    margin-top:40px;
}

.gallery-item{
    position:relative;
    overflow:hidden;
    border-radius:20px;
    cursor:pointer;
    background:#0f172a;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
}

.gallery-image{
    display:block;
    width:100%;
    height:auto;
    border-radius:20px;
    transition:transform .35s ease, filter .35s ease;
}

.gallery-item:hover .gallery-image{
    transform:scale(1.05);
    filter:brightness(1.08);
}

.gallery-item::after{
    content:"🔍 Ver imagen";
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    background:rgba(0,0,0,.75);
    color:white;
    padding:12px 20px;
    border-radius:30px;
    font-size:15px;
    font-weight:600;
    opacity:0;
    transition:opacity .3s ease;
    pointer-events:none;
}

.gallery-item:hover::after{
    opacity:1;
}

@media (max-width:768px){

    .gallery-grid{
        grid-template-columns:1fr;
        gap:25px;
    }

}

/*======================================================
BLOG
======================================================*/

.blog-hero{
    padding:100px 8% 60px;
    background:#f8fafc;
}

.blog-hero .container{
    max-width:1100px;
    margin:0 auto;
}

.blog-hero h1{
    margin-top:35px;
    margin-bottom:20px;
}

.blog-hero .subtitle{
    max-width:1100px;
    margin:0;
}

.blog-list{

padding:70px 8%;

background:#f8fafc;

}

.blog-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(340px,1fr));

gap:35px;

margin-top:40px;

}

.blog-card{

background:white;

border-radius:20px;

overflow:hidden;

box-shadow:0 15px 35px rgba(0,0,0,.08);

transition:.35s;

display:flex;

flex-direction:column;

}

.blog-card:hover{

transform:translateY(-10px);

box-shadow:0 20px 45px rgba(37,99,235,.15);

}

.blog-card img{

width:100%;

height:230px;

object-fit:cover;

display:block;

}

.blog-content{

padding:30px;

display:flex;

flex-direction:column;

flex:1;

}

.blog-date{

color:#64748b;

font-size:14px;

font-weight:500;

margin-bottom:15px;

display:flex;

align-items:center;

gap:8px;

}

.blog-date i{

color:#2563eb;

}

.blog-card h2{

font-size:28px;

line-height:1.3;

margin-bottom:18px;

color:#0f172a;

}

.blog-card p{

font-size:17px;

line-height:1.8;

color:#64748b;

margin-bottom:30px;

flex:1;

}

.blog-card .btn-primary{

display:inline-block;

width:fit-content;

}

.blog-cta{

margin-top:90px;

background:white;

padding:60px;

border-radius:25px;

text-align:center;

box-shadow:0 15px 35px rgba(0,0,0,.08);

}

.blog-cta h2{

font-size:42px;

margin-bottom:20px;

}

.blog-cta p{

max-width:700px;

margin:0 auto 35px;

font-size:20px;

color:#64748b;

line-height:1.8;

}

@media(max-width:1100px){

.blog-grid{

grid-template-columns:repeat(2,1fr);

}

}


@media(max-width:768px){

.blog-grid{

grid-template-columns:1fr;

}

.blog-card h2{

font-size:24px;

}

.blog-cta{

padding:40px 25px;

}

.blog-cta h2{

font-size:32px;

}

}

.post-container{
    max-width:900px;
    margin:0 auto;
    background:#fff;
    padding:60px 70px;
    border-radius:22px;
    box-shadow:0 15px 45px rgba(0,0,0,.08);
}

.post-container h2{
    font-size:38px;
    color:#0f172a;
    margin:55px 0 25px;
    line-height:1.3;
}

.post-container p{
    font-size:20px;
    line-height:2;
    color:#475569;
    margin-bottom:28px;
    text-align:left;
}

.post-container ul{
    margin:25px 0 35px 30px;
    padding-left:10px;
    list-style:disc;
}

.post-container li{
    font-size:20px;
    line-height:2;
    color:#475569;
    margin-bottom:10px;
}

/* =====================================
   LIGHTBOX - IMAGEN AMPLIADA
===================================== */

.image-lightbox{
    position:fixed;
    inset:0;
    z-index:99999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:30px;
    background:rgba(0,0,0,.88);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .3s ease, visibility .3s ease;
}

.image-lightbox.active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.lightbox-image{
    display:block;
    max-width:95vw;
    max-height:90vh;
    width:auto;
    height:auto;
    object-fit:contain;
    border-radius:12px;
    box-shadow:0 20px 60px rgba(0,0,0,.5);
    transform:scale(.92);
    transition:transform .3s ease;
}

.image-lightbox.active .lightbox-image{
    transform:scale(1);
}

.lightbox-close{
    position:absolute;
    top:20px;
    right:25px;
    z-index:100000;
    width:48px;
    height:48px;
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    color:white;
    font-size:36px;
    line-height:1;
    cursor:pointer;
    transition:background .2s ease, transform .2s ease;
}

.lightbox-close:hover{
    background:rgba(255,255,255,.3);
    transform:scale(1.08);
}

body.lightbox-open{
    overflow:hidden;
}