:root{
    --black:#000000;
    --red:#FF0000;
    --red-dark: #c0392b;
    --dark:#333333;
    --white:#FFFFFF;
    --muted:#f5f5f5;
    --container: 1200px;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    overflow-x: hidden;
}

body{
    margin:0;
    font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Open Sans',sans-serif;
    background:#fff;
    color:var(--dark);
    overflow-x: hidden;
}

h2 {
    font-size: 2.5rem;
}

h3{
    font-size: 2rem;
}

p{
    font-size: 1.2rem;
}

a{
    color:inherit;
    text-decoration:none
}

img{
    max-width:100%;
    display:block
}

.container{
    max-width:var(--container);
    margin-inline:auto;
    padding:0 1rem
}

/* Header */
header{
    position:relative;
    top:0;
    z-index:50;
    background:rgba(0,0,0,.9);
    backdrop-filter:saturate(180%) blur(6px);
    color:var(--white);
    border-bottom:1px solid rgba(255,255,255,.08)
}

.navbar {
    width: 100%;
    height: 80px;
    background: var(--dark);
    display: flex;
    align-items: center;

    top: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 1000;
}

.navbar-container {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    color: var(--muted);
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links li a {
    color: var(--white);
    font-weight: 500;
    text-decoration: none;
    padding: 8px 12px;
    transition: background 0.3s ease, color 0.3s ease;
    border-radius: 8px;
}

.nav-links li a:hover {
    background: var(--red);
    color: var(--white);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
}

.lang-switch button {
    background: #1e293b;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.lang-switch button:hover {
    background: #334155;
    transform: scale(1.05);
}

/* Hero video*/
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: var(--light);
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero .wrap{
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:2rem;
    align-items:center;
    padding:3.2rem 2rem;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.line1 {
    color: var(--white);
    margin: auto;
    font-size: 4rem;
}

.line2 {
    color: var(--white);
    margin: auto;
    font-size: 3rem;
}

.slogan {
    opacity: 0.9;
    color: var(--muted);
    margin-top: 80px;
    font-size: 1.2rem;
}

.slogan2 {
    background-color: var(--muted);
    font-size: 1.2rem;
    padding: 1%;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-content .typewriter-line,
.hero-content .slogan,
.hero-content .slogan2 {
    opacity: 0;
    animation: slideInRight 2s ease-out forwards;
}

.hero-content .line1 { animation-delay: 0.3s; }
.hero-content .line2 { animation-delay: 0.6s; }
.hero-content .slogan { animation-delay: 0.9s; }
.hero-content .slogan2 { animation-delay: 0.12s; }


/* Sections */
section{
    padding:3rem 0
}

.lead{
    color: var(--dark);
    max-width:70ch
}

/* service modal */
.services-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
}

.central-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #e74c3c;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    animation: pulse 1.5s infinite;
}

.central-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(231,76,60,0.8);
    background-color: #c0392b;
}

.title{
    font-size:clamp(1rem,3.5vw);
    margin:.25rem 0 1rem
}

.title strong{
    color:var(--red)
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
    animation: fadeIn 0.3s ease;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* carrusel */
.carousel {
    position: relative;
    width: 90%;
    height: 850px;
    margin: 30px auto;
    padding: 0 10px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--black);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.carousel h2{
    text-align: center;
    font-size: 3rem;
    color: var(--red-dark);
}

.carousel h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: var(--red);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.carousel h3{
    text-align: center;
    color: var(--muted);
}

.carousel-container {
    display: flex;
    transition: transform 0.6s ease-in-out;
    height: 100%;
}

.carousel-item {
    min-width: 50%;
    height: 950px;
    margin: 10px 0px;
    box-sizing: border-box;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.carousel-item img {
    width: 95%;
    height: 63%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    transition: transform 0.2s ease;
}

.carousel-item img:hover {
    transform: scale(1.05);
}

button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--muted);
    font-size: 32px;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
}

button.prev { left: 20px; }
button.next { right: 20px; }

button:hover {
    background: rgba(255,255,255,0.4);
}

/* Services grid */
#servicios{
    display: flex;
    justify-content: center;
    text-align: center;
}
.grid{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.grid .card {
    flex: 1 1 250px;
    max-width: 100%;
}

.card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    max-width: 500px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-text {
    flex: 1;
    margin-bottom: 8px;
}

.card-text p {
    font-size: 0.9rem ;
    color: #333;
}

.card-img img {
    width: 60px;
    height: auto;
}

.card:hover {
    transform: scale(1.05);
    background: #f0f0f0;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

/* sobre */
#sobre {
    text-align: center;
    padding: 4rem 1rem;
    background: #f9f9f9;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
}

#sobre h2 {
    color: var(--red);
}

#sobre h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: var(--red);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

#sobre p {
    max-width: 700px;
    margin: 0 auto 2rem;
}

#sobre .grid {
    justify-content: center;
    gap: 1.5rem;
}

#sobre .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Grid de servicios */
#identidades-seguridad {
    background-color: var(--red-dark);
    color: var(--white);
    overflow-x: hidden;
}

#identidades-seguridad h2 {
    text-align: center;
    color: var(--white);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

#identidades-seguridad h2::after {
    content: '';
    display: block;
    width: 30%;
    height: 3px;
    background: var(--white);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

#identidades-seguridad .inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

}

.identidad {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 50px;
    width: calc(100% - 50px);
    max-width: 350px;

    padding: 0,5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1),
                0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.identidad:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.2),
                0 6px 25px rgba(0, 0, 0, 0.6);
}
.identidad ul{
    padding-right: 10%;
    justify-items: center;
}
.identidad li{
    font-size: 1rem;
    list-style: none;
}

.identidad img {
    max-width: 120px;
    height: auto;
    padding-top: 5%;
}

.identidad h3 {
    color: var(--white);
}

/* Testimonials */
#testimonials h2 {
    margin-bottom: 1rem;
    color: var(--red);
    position: relative;
    display: inline-block;
    text-align: center;
}

#testimonials h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: var(--red);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

#testimonials .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#testimonials .grid {
    justify-content: center;
    gap: 1.5rem;
}

/* Unidades */
#unidades {
    text-align: center;
    margin-bottom: 2rem;
}

#unidades h2 {
    color: var(--red);
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

#unidades h2::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: var(--red);
    margin: 0.5rem auto 0;
    border-radius: 2px;
    animation: expandLine 1s forwards;
}

@keyframes expandLine {
    from { width: 0; }
    to { width: 50%; }
}

#unidades .unit{
    width: 40%;
    border-radius: 2px;
    margin: 2%;
}

#unidades iframe{
    width: 100%;
    border-radius: 2px;
}

.meta .contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}


.meta h3 {
    color: var(--red);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.meta  div {
    border-top: 1px solid rgba(255,0,0,0.3);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.meta p {
    color: var(--dark);
}

.meta .contact a img {
    display: block;
    width: 40px;
    height: 40px;
}

.meta a img:hover {
    transform: scale(1.2);
}

#faq {
    text-align: center;
    padding: 3rem 1rem;
}

#faq h2 {
    color: var(--red);
    position: relative;
    display: inline-block;
}

#faq h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: var(--red);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.faq-card {
    background: #fff;
    padding: 0 20%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.faq-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 1rem;
    background: var(--dark);
    color: var(--white);
    flex-wrap: wrap;
}

footer .col {
    flex: 1 1 250px;
    min-width: 220px;
}
footer p{
    font-size: 0.8rem;
}
footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--red);
}

footer a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--red);
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--container);
    margin: 0 auto;
}

.footer-col h3 {
    color: var(--red);
    margin-bottom: 1rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: var(--red);
    margin: 0.5rem 0 0;
    border-radius: 2px;
}

.footer-col p, .footer-col ul, .footer-col button {
    margin-bottom: 0.75rem;
}

footer .btn {
    background-color: var(--red);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
}

footer .btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.6);
}

footer .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.4);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s;
}

.social-links img:hover {
    transform: scale(1.2);
}

.legal {
    text-align: center;
    padding: 1.5rem 1rem;
    width: 100%;
}

/* Floating WhatsApp */
.wa-float {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 1000;
}

.wa-float a img {
    width: 90px;
    height: 90px;
    transition: transform 0.3s ease;
}

.wa-float a img:hover {
    transform: scale(1.2);
}

.art {
  display: flex;
  align-items: flex-start; 
  gap: 20px; 
  padding: 30px 0;
}

.art > div:first-child {
  flex: 1; 
}

.text-block {
  flex: 1; 
}

.art.invert {
  flex-direction: row-reverse;
}

.img-block img {
  border-radius: 12px;
  border: 2px solid var(--muted); 
  box-shadow: 0 0 15px var(--red-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-block img:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 0 25px var(--red);
}


@media (max-width: 780px) {
    p{
        font-size: 1rem;
    }
    h2 {
        font-size: 3.5rem;
    }
    h3 {
        font-size: 2rem;
    }

    .navbar {
        font-size: 1rem;
        padding: 5% 0 ;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 0;
        transition: width 0.3s ease;
        box-sizing: border-box;
    }

    .nav-links {
        overflow: hidden;
    }

    .nav-links.show {
        background: rgba(0, 0, 0, 0.95);
        width: 30%;
        transform: translateX(0);
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }

    .nav-links li a {
        font-size: 1.5rem;
        color: var(--white);
    }

    .menu-toggle {
        padding: 0 2% 0 2% ;
        display: block;
    }

    .carousel {
        width: 98%;
        height: 600px;
    }

    .carousel h3{
        display: none;
    }

    .carousel-item {
        justify-items: center;
        width: 50%;
    }

    .carousel-item img {
        background-color: none;
        width: 95%;
        height: 42%;
        object-fit: cover;
        display: block;
        border-radius: 16px;
        transition: transform 0.2s ease;
    }

    .modal-content{
        padding-top: 400px;
    }

    #openModal h2{
        font-size: 1.5rem;
    }

    #servicesModal .card{
        padding: 7px 0;
        margin: 0 auto
    }
    

    #identidades-seguridad li {
        font-size: 1.5rem
    }

    #identidades-seguridad .inner {
        /* flex-direction: column; */
        align-items: center;
    }

    #identidades-seguridad .identidad {
        max-width: 800px;
    }

    .identidad ul{
        padding: 0%;
        font-size: 1.5rem;
    }

    #sobre .grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 1.5rem;
        margin: 20%;
    }

    #sobre .card {
        padding: 5%;
        flex: 700px;
    }

    #testimonials .grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 1.5rem;
        margin: 20%;
    }

    #testimonials .card {
        padding: auto;
        flex: 600px;
        width: 10%;
        height: 250px;
        margin: 0 auto
    }

    #testimonials p{
        padding: 1%;
    }

    #unidades .grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 1.5rem;
        margin: 20%;
    }

    #unidades .unit {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 600px;
        margin: 1rem;
    }

    /* iframe do mapa */
    #unidades .unit iframe {
        width: 80vw;
        height: 500px;
        border: 0;
        border-radius: 1%;
    }

    footer {
        justify-content: center;
        background: var(--dark);
        color: var(--white);
        padding: 0;
    }

    .footer-cols {
        margin: 0;
        padding: 5%;
        box-sizing: border-box;
    }

    .art {
        text-align: center;
        align-items: center;
    }

    .art img {
        text-align: center;
        align-items: center;
    }

    .art.invert {
        flex-direction: column;
    }

    .art {
        flex-direction: column;
    }
}

@media (max-width: 480px){
    .carousel {
        background-color: #000000c4;
        width:100%;
        height: 650px;
    }

    .carousel h3{
        display: none;
    }

    .carousel-item {
        background: none;
        justify-items: center;
        min-width: 100%;
    }

    .carousel-item img {
        background-color: none;
        width: 95%;
        height: 42%;
        object-fit: cover;
        display: block;
        border-radius: 16px;
        transition: transform 0.2s ease;
    }

    .modal-content{
        padding-top: 320px;
    }
    #servicesModal .card{
        padding: 0px 0;
        margin: 0 auto;
    }

    .social-links img {
        width: 25px;
        height: 25px;
        transition: transform 0.3s;
    }
   
    .wa-float {
        display: none;
    }
}
