/* RESET */ 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #111;
    background: #fff;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
    background-color: #344955;
    transition: background-color 0.4s ease;
}

.navbar.on-hero {
    background-color: transparent;
}

.navbar .logo {
    width: 45px;
}

.nav-links a {
    margin-left: 25px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    opacity: 0.85;
    transition: 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

.menu-toggle {
    display: none;
}

.menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-btn span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transition: 0.3s ease;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    color: white;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    z-index: -1;
}

.hero-content {
    position: absolute;
    bottom: 120px;
    left: 60px;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 58px;
    line-height: 1.15;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-btn {
    padding: 14px 24px;
    background: white;
    color: black;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.cta-btn:hover {
    opacity: 0.75;
}

/* CENTER TEXT SECTION */
.center-section {
    text-align: center;
    padding: 150px 20px;
    max-width: 900px;
    margin: auto;
}

.center-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.center-section p {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.75;
}

/* GRID SECTIONS */
.grid-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 80px 60px;
    align-items: center;
    gap: 60px;
}

.grid-section.reverse {
    direction: rtl;
}

.grid-section.reverse .grid-text {
    direction: ltr;
}

.grid-text h3 {
    font-size: 26px;
    margin-bottom: 15px;
}

.grid-text p {
    font-size: 17px;
    line-height: 1.6;
    opacity: 0.8;
    text-align: justify;
}

.grid-image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}
.pan-image{
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 140% auto;
  background-position: var(--pos) 50%;
  transition: background-position 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}


/* SERVICIOS */
.services-section {
    padding: 120px 40px;
    background: #f4f4f4;
    text-align: center;
}

.services-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.services-header-image img {
    width: 100%;
    border-radius: 18px;
    margin-bottom: 60px;
    object-fit: cover;
}

/* GRID DE CARDS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

/* CARD */
.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

.icon-box {
    width: 60px;
    height: 60px;
    border: 1px gray solid;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 30px;
}

.service-card h3 {
    font-size: 26px;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    margin-left: 10px;
    margin-right: 10px;
}

.services-cta {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

/* BOTÓN */
.service-btn {
    display: inline-block;
    padding: 18px 42px;
    border-radius: 32px;
    background: #344955;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.service-btn:hover {
    background: #333;
    transform: translateY(-2px);
}


/* DARK FULL SECTION */
.full-dark {
    background: black;
    color: white;
    padding: 160px 40px;
    text-align: center;
}

.full-dark h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.full-dark p {
    font-size: 18px;
    opacity: 0.8;
}

/* QUIENES SOMOS */
.quienes-somos { 
    padding: 60px 40px;
    background: #f4f4f4;
    text-align: center;
}

.quienes-somos h2 {
    font-size: 36px;
    margin-bottom: 50px;
}

.quienes-grid-top {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

.qs-card {
    background: white;
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.25s ease;
    margin-bottom: 20px;
}

.qs-card h3 {
    font-size: 26px;
    margin-bottom: 15px;
}

.qs-card p {
    font-size: 16px;
    line-height: 1.5;
    margin-left: 12px;
    margin-right: 12px;
    color: #555;
    text-align: justify;
}

.equipo-title {
    margin-top: 80px;
    margin-bottom: 40px;
    font-size: 38px;
}

.quienes-grid-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: auto;
}

.team-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.25s ease;
}

.team-card img {
    width: 50%;
    border-radius: 20px;
    margin-bottom: 20px;
}

.team-card h4 {
    font-size: 22px;
    margin-bottom: 10px;
}

.team-card p {
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
    color: #333;
}

/* CONTACTO */
.contacto {
    padding: 70px 20px;
    background: #f5f5f5;
    text-align: center;
}

.contacto h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #222;
}

.form-contacto {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0px 5px 20px rgba(0,0,0,0.08);
    text-align: left;
}

.form-contacto .grupo {
    margin-bottom: 20px;
}

.form-contacto label {
    display: block;
    font-weight: bold;
    color: #222;
    margin-bottom: 6px;
}

.form-contacto input,
.form-contacto textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: border .2s ease;
}

.form-contacto input:focus,
.form-contacto textarea:focus {
    border-color: #000;
}

.btn-enviar {
    display: block;
    width: 100%;
    background: #344955;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background .2s ease;
}

.btn-enviar:hover {
    background: #444;
}

/* FOOTER */
.footer {
    padding: 60px;
    text-align: center;
    background: #344955;
    color: #ccc;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 38px;
    }

    .grid-section {
        grid-template-columns: 1fr;
        padding: 80px 30px;
    }

    .navbar {
        padding: 20px 25px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .menu-btn {
        display: flex;
        z-index: 25;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background: rgba(0,0,0,0.85);
        backdrop-filter: blur(8px);
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 25px 0;
        transition: max-height 0.35s ease;
    }

    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    .nav-links a {
        font-size: 18px;
        margin-left: 0;
        opacity: 1;
    }

        .quienes-grid-top{
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .quienes-grid-bottom{
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .team-card img{
        width: 100%;
        max-width: 220px;
        height: auto;
    }

    .menu-toggle:checked + .menu-btn span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }
    .menu-toggle:checked + .menu-btn span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked + .menu-btn span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }
}

/* CARRUSEL – TECNOLOGÍA 1*/
.grid-image {
    display: flex;
    justify-content: flex-end;
}

.carousel {
    width: 100%;
    max-width: 960px;
    position: relative;
}

.carousel-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.carousel-slide.is-active {
    opacity: 1;
    z-index: 1;
}

/* Flechas */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    border-radius: 8px;
    line-height: 1;
    width: 34px;
    height: 34px;
    padding: 0;
}

.carousel-btn.prev {
    left: 8px;
}

.carousel-btn.next {
    right: 8px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.65);
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 14px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.carousel-dots .dot.is-active {
    background: #ffffff;
}

/* Mobile */
@media (max-width: 900px) {
    .grid-image {
        justify-content: center;
    }

    .carousel {
        max-width: 100%;
    }

    .carousel-btn {
        font-size: 1.6rem;
    }
}


/*Tecnología 2*/
.pan-carousel{
  width: 100%;
  max-width: 960px;
  position: relative;
  border-radius: 20px;
}

.pan-viewport{
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 20px;
  position: relative;
}

.pan-image{
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--pos) 50%;
  transition: background-position 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pan-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
  border-radius: 8px;
  line-height: 1;
  width: 34px;
  height: 34px;
  padding: 0;
}

.pan-btn.prev{ left: 8px; right: auto; }
.pan-btn.next{ right: 8px; left: auto; }

.pan-btn:hover{
  background: rgba(0, 0, 0, 0.65);
}

.pan-btn:disabled{
  opacity: 0.35;
  cursor: default;
}

.pan-btn:disabled:hover{
  background: rgba(0, 0, 0, 0.45);
}

@media (max-width: 900px){
  .pan-carousel{ max-width: 100%; }
  .pan-viewport{ border-radius: 16px; }
}
