/*
    BEM = BLOCK ELEMENT MODIFIER
    BEM PERMITE REUTILIZAR CODIGOS
    CUALQUIER ETIQUETAS PUEDE TENER CLASES
*/
:root { /* Esta propiedad sirve para trabajar con variables */
    --primario: #1abc9c;
    --primarioClaro: #f39c12;
    --secundario: #16a085;
    --secundarioClaro: #f1c40f;
    --blanco: white;
    --gris: #7f8c8d;    
}


*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
font-size: 62.5%; /*Se transformo la fuente base en 10 px  */
}

.contenedor {
    max-width: 120rem;
    margin-left: auto;
    margin-right: auto;
}

body {
        font-family: 'Poppins', sans-serif;
        margin: 0;
        padding: 0;
        background-color: #f9f9f9;
        color: #333;
    }

.header {
    background: #fff;
    padding: 1rem 1rem;
    text-transform: uppercase;
}

.header-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    
}

/* LOGO */
.logo img {
    width: 250px;
    height: auto;
    justify-content: space-between;
}

/* NAV CENTRADO */
.nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

/* LINKS */
.nav--link {
    text-decoration: none;
    color: #111;
    font-size: 1.6rem;
    padding: .7rem 1.4rem;
    font-weight: 600;
    border-radius: 2rem;
    transition: all .3s;
}

/* HOVER */
.nav--link:hover {
    background-color: #5cdbc8;
}

/* OFERTAS */
.nav--link.activos {
    background-color: red;
    color: #fff;
}

/* ======================
   RESPONSIVE
====================== */
@media (max-width: 900px) {

    .header-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .logo {
        text-align: center;
    }

    .logo img {
        width: 220px;
    }

    .nav {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav--link {
        width: 90%;
        text-align: center;
        font-size: 1.6rem;
    }
}
 
 
.ubicacion {   
    background-image: url(./img/laptop.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    .ubicacion__box {
        padding-top: 30rem;
        padding-bottom: 30rem;
        background-color: rgba(0,0,0,.6);
        display: flex;
        flex-direction: column;
        align-items: center;
        .ubicacion__box--descri {
            margin-bottom: 3rem;
            font-size: 2.4rem;
            color: white;
            text-align: center;
        }

        .ubicacion__box--locale {
            i {
                color: var(--primario);
                font-size: 2.4rem;
                margin-right: .5rem;
            }
            span {
                color: var(--blanco);
                font-size: 1.6rem;
            }
        }
    }
}
    .services {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px;
    }

    .service-card {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            padding: 20px;
            width: 250px;
    }
     h2{
            font-size: 3rem;
            text-align: center;
            margin-bottom: 2rem;
        }


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #fff;
}

.cards-section {
  padding: 80px 5%;
  margin-top: -6rem;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.card {
  perspective: 1200px;
}

.card-inner {
  width: 100%;
  height: 420px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  cursor: pointer;
}

.card.is-flipped .card-inner {
  transform: rotateY(180deg);
}

/* FRONT */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  backface-visibility: hidden;
  overflow: hidden;
}

.card-front {
  background-size: cover;
  background-position: center;
  padding: 30px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.7),
    rgba(0,0,0,.2)
  );
}

.card-front * {
  position: relative;
  z-index: 2;
}

.card-front h3 {
  font-size: 24px;
  color: #4ef0f0;
}

.card-front p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.4;
}

.plus {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 42px;
  height: 42px;
  background: #4ef0f0;
  color: #000;
  font-size: 28px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* BACK */
.card-back {
  background: #0e1b2b;
  color: #fff;
  transform: rotateY(180deg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-back h3 {
  color: #4ef0f0;
  margin-bottom: 15px;
}

/* Hover effect */
.card:hover .card-inner {
  transform: translateY(-10px) rotateX(5deg);
}

/* Responsive */
@media (max-width: 1024px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards-container {
    grid-template-columns: 1fr;
  }
}

h4{
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--blanco);
    }

h1{
    font-size: 6rem;
    color: var(--primario);
    text-align: center;
    font-weight: 700;
    margin: 1rem;
}

 h2{
            font-size: 3.5rem;
            text-align: center;            
            color: var(--primario);
            font-weight: bold;
        }

h3{
    font-size: 3rem;
    color: var(--secundarioClaro);
    text-align: center;
}

 
/* ===== FOOTER GENERAL ===== */
.footer {
    background: #0d1b2a;
    color: #ffffff;
    padding: 60px 40px 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1300px;
    margin: auto;
}

/* ===== COLUMNAS ===== */
.footer-col h3 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 15px;
}

.footer-col ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primario);
}

/* ===== LOGO + DESCRIPCION ===== */
.footer-logo {
    width: 350px;
    height: 100px;
    margin-bottom: 15px;
}

.footer-col p {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 17px;
}

/* ===== REDES SOCIALES ===== */
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #1b263b;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 22px;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primario);
}

/* ===== CONTACTO ===== */
.contact-info li {
    color: #ddd;
    margin-bottom: 12px;
    font-size: 15px;
}

/* ===== PARTE INFERIOR ===== */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid var(--gris);
    padding-top: 15px;
    font-size: 22px;
    color: var(--secundario);
}

/* ===== RESPONSIVE ===== */

/* Tablets horizontales */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
        margin-top: 15px;
    }
}

/* Tablets verticales / móviles grandes */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3 {
        font-size: 18px;
    }

    .footer-col p {
        font-size: 15px;
    }

    .footer-col ul li {
        font-size: 14px;
    }

    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 15px;
        margin-right: 8px;
    }

    .footer-logo {
        width: 130px;
        margin-bottom: 10px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-col h3 {
        font-size: 16px;
    }

    .footer-col p {
        font-size: 14px;
    }

    .footer-col ul li {
        font-size: 13px;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-right: 6px;
    }

    .footer-bottom {
        font-size: 12px;
    }
}
