/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* ======================================
   Variables CSS
   ====================================== */
:root {
    /* Colores principales */
    --color-primary: #FFD700;
    --color-primary-hover: #ffca28;

    /* Colores de fondo */
    --bg-primary: #121212;
    --bg-secondary: #1E1E1E;
    --bg-tertiary: #1a1a1a;
    --bg-quaternary: #1c1c1c;
    --bg-dark: #000000;
    --bg-lighter: #2a2a2a;
    --bg-card: #292929;

    /* Colores de texto */
    --text-primary: #f0f0f0;
    --text-secondary: #ffffff;
    --text-tertiary: #bebebe;
    --text-quaternary: #aaaaaa;
    --text-muted: #aaa8a8;
    --text-light: #c2c2c2;
    --text-contrast: #000000;
    --text-bright: #f3f3f3;
    --text-subtle: #ccc;

    /* Colores de bordes */
    --border-primary: #353535;
    --border-secondary: #363636;
    --border-tertiary: #292929;
    --border-quaternary: #333;
    --border-light: #3d3d3d;
    --border-subtle: #919191;

    /* Colores de sombra y overlay */
    --shadow-dark: rgba(0, 0, 0, 0.8);
    --shadow-medium: rgba(0, 0, 0, 0.6);
    --shadow-light: rgba(0, 0, 0, 0.5);
    --shadow-subtle: rgba(0, 0, 0, 0.3);
    --shadow-card: rgba(0, 0, 0, 0.2);
    --shadow-gray: rgba(102, 102, 102, 0.1);
    --shadow-border: rgba(61, 61, 61, 0.4);
    --shadow-whatsapp: rgba(0, 0, 0, 0.3);

    /* Colores especiales */
    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #1faf54;
    --color-facebook: #1877F2;
    --color-white-overlay: rgba(255, 255, 255, 0.85);
}

/* ======================================
   Reset y estilos principales
   ====================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* ======================================
   Header y navegación
   ====================================== */

header {
    width: 100%;
    background-color: transparent;
    padding: 20px 0;
    border-bottom: 2px solid transparent;
    position: fixed;
    top: 0;
    z-index: 1020;
    transition: all 0.4s ease;
}

.scrolled {
    background-color: var(--bg-primary);
    border-bottom: 2px solid var(--border-primary);
}

header h1 {
    color: var(--color-primary);
    font-size: 2rem;
    display: inline-block;
}

nav {
    display: flex;
    width: 90%;
    margin: auto;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.activo::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle div {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 4px 0;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--shadow-medium);
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
}

.overlay.show {
    display: block;
}

.logo a:hover::after {
    width: 0%;
}

.logo img {
    width: 120px;
    height: auto;
}

/* ======================================
   Containers generales
   ====================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    margin-top: 35px;
    margin-bottom: 30px;
}

.container h1 {
    width: 80%;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.7rem;
    color: var(--color-primary);
    text-transform: uppercase !important;
}

.container h2 {
    font-size: 2.1rem;
    margin: 20px 0;
}

.container h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 2px;
    background-color: var(--color-primary);
    margin-top: 10px;
    margin-bottom: 5px;
}

.container h3 {
    font-size: 1.8rem;
    margin-top: 7px;
    color: var(--color-primary);
    margin: 7px 0;
}

/* ======================================
   Hero y hero individuales
   ====================================== */
.hero {
    width: 100%;
    height: 120px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1,
.hero-sobre-nosotros h1,
.hero-services h1,
.hero-contacto h1 {
    font-size: 3.5rem;
    color: var(--text-secondary);
}

.hero p,
.hero-sobre-nosotros p,
.hero-services p,
.hero-contacto p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.hero a,
.hero-sobre-nosotros a,
.hero-services a,
.hero-contacto a {
    text-decoration: none;
    color: var(--text-primary);
}

.hero a:hover,
.hero-sobre-nosotros a:hover,
.hero-services a:hover,
.hero-contacto a:hover {
    text-decoration: underline;
}

.hero-sobre-nosotros {
    width: 100%;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url("../img/banners/banner-sobre-nosotros.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 100%;
    text-align: center;
    margin-top: 135px;
}

.hero-services {
    width: 100%;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url("../img/banners/banner-servicios.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 65%;
    text-align: center;
    margin-top: 135px;
}

.hero-contacto {
    width: 100%;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url("../img/banners/banner-sobre-nosotros.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 100%;
    text-align: center;
    margin-top: 135px;
}

/* ======================================
   Secciones generales
   ====================================== */
section {
    padding: 60px 0;
}

/* ======================================
   Sección Home
   ====================================== */
.home {
    background: var(--bg-secondary);
    text-align: center;
    position: relative;
}

.home img {
    width: 100%;
    height: auto;
    filter: brightness(0.4);
    display: block;
}

.home h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    margin: 20px auto;
    font-size: 2.5rem;
    color: var(--text-secondary);
}

/* ======================================
   Sección Sectores
   ====================================== */
.sectores ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 30px;
    gap: 20px;
}

.sectores li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    color: var(--color-primary);
    background-color: var(--bg-secondary);
    font-size: 1.1rem;
    font-weight: bold;
    padding: 20px;
    border-top: 3px solid transparent;
    border: 3px solid var(--border-secondary);
    border-radius: 7px;
    transition: background-color 0.7s ease, transform 0.3s ease, border 0.3s ease;
}

.sectores li::after {
    content: '';
    display: block;
    width: 100%;
    height: 0;
    border-bottom: 3px solid var(--border-subtle);
    opacity: 0;
    transition: opacity 0.4s;
}

.sectores li:hover::after {
    opacity: 1;
}

.sectores li:hover {
    background-color: var(--bg-lighter);
    border-top: 3px solid var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
}

.sectores li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 14px;
    margin-bottom: 7px;
    filter: brightness(0.8);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.sectores li:hover img {
    transform: scale(1.03);
    filter: brightness(1);
}

.sectores i {
    font-size: 2.4rem !important;
    margin-top: 14px !important;
}

.sectores li:hover i {
    overflow: hidden;
}

.sectores p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    font-weight: 400;
    margin-top: 10px;
}

/* ======================================
   Sección Diferenciales
   ====================================== */
.diferenciales {
    overflow: hidden;
}

.diferenciales h2 {
    margin-bottom: 40px;
}

.pilares {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.pilar {
    background-color: var(--bg-primary);
    border: 3px solid var(--border-tertiary);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-bottom 0.3s ease, background-color 0.3s ease;
}

.pilar h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.pilar p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    font-family: "Inter", sans-serif;
}

.pilar:hover {
    transform: translateY(-5px);
    background-color: var(--bg-tertiary);
    box-shadow: 0 8px 16px var(--shadow-gray);
    border-bottom: 3px solid var(--color-primary);
}

.servicios-home h2 {
    margin-bottom: 30px;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

/* ======================================
   Sección Servicios Home
   ====================================== */

.servicio-box {
    border-radius: 10px;
    padding: 20px;
    background-color: var(--bg-card);
    border: 2px solid var(--color-primary);
    transition: 0.3s;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.servicio-box:hover {
    background-color: var(--bg-tertiary);
    box-shadow: 0 0 4px var(--color-primary);
    transform: scale(1.02);
}

.servicio-box i {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-right: 4px;
}

.servicio-box h3 {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ======================================
   Botón estilizado general
   ====================================== */
.btn-link {
    display: inline-block;
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    text-decoration: none;
    border-radius: 7px;
    padding: 10px 35px;
    font-weight: bold;
    margin-top: 28px;
    cursor: pointer;
    transition: background-color 0.4s, color 0.4s, border 0.4s;
}

.btn-link:hover {
    background-color: var(--color-primary);
    color: var(--text-contrast);
    border: 2px solid transparent;
}

/* ======================================
   Sección Sobre nosotros
   ====================================== */
.nosotros {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 45px;
    overflow: hidden;
}

.nosotros-info {
    margin: 0 30px;
    order: 2;
}

.nosotros-info p {
    padding: 0px 0px 15px 0px;
    margin: auto;
    color: var(--text-tertiary);
}

.nosotros-info button {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 7px;
    padding: 10px 35px;
    font-weight: bold;
    margin-top: 4px;
    cursor: pointer;
    transition: background-color 0.4s, color 0.4s, border 0.4s;
}

.nosotros-info button:hover {
    background-color: var(--color-primary);
    color: var(--text-contrast);
    border: 2px solid transparent;
}

.nosotros-img img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    order: 1;
    transition: filter 0.5s, transform 0.5s;
}

.nosotros-img img:hover {
    filter: brightness(0.7);
    transform: scale(1.02);
}

.cont-nosotros {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: bold;
}

.cont-nosotros li::after {
    border-bottom: none !important;
}

.cont-nosotros i {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-top: 7px;
}

/* ======================================
   Galería de imágenes
   ====================================== */
.gallery-wrapper {
    position: relative;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 6px var(--shadow-card);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.3);
}

.plus-anim {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    pointer-events: none;
}

.line {
    position: absolute;
    background-color: var(--color-white-overlay);
    border-radius: 2px;
    transition: all 0.4s ease;
}

.line.horizontal {
    top: 50%;
    left: 50%;
    width: 0%;
    height: 4px;
    transform: translate(-50%, -50%);
}

.line.vertical {
    top: 50%;
    left: 50%;
    height: 0%;
    width: 4px;
    transform: translate(-50%, -50%);
}

.gallery-item:hover .line.horizontal {
    width: 30px;
}

.gallery-item:hover .line.vertical {
    height: 30px;
}

.nav-button {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--shadow-light);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    border-radius: 50%;
}

.nav-button:hover {
    background: var(--shadow-dark);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* ======================================
   Modal para galería
   ====================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--shadow-dark);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.modal img {
    max-width: 90vw;
    max-height: 90vh;
}

.modal.active {
    display: flex;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 60px;
    font-size: 60px;
    color: white;
    cursor: pointer;
    z-index: 1051;
}

.close-btn:hover {
    color: var(--text-light);
}

/* ======================================
   Sección Servicios
   ====================================== */

/* Card box Servicios */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.card-area {
    padding: 0 2rem;
    color: #fff;
}

.cards-services {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 20px;
    gap: 45px;
}

.card-servicio {
    max-height: min-content;
    background-color: var(--bg-quaternary);
    border-bottom: 6px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-bottom 0.3s ease;
}

.cards-services-tar {
    max-height: min-content;
    background-color: var(--bg-quaternary);
    border: 3px solid var(--border-tertiary);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    transition: transform 0.3s ease, border-bottom 0.3s ease;
}

.cards-services-tar:hover {
    border-bottom: 3px solid var(--color-primary);
    box-shadow: 0 0 10px var(--shadow-border);
}

.img-services {
    width: 50%;
    overflow: hidden;
}

.cards-services-tar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.6);
    transition: filter 0.7s ease, transform 0.7s ease;
}

.cards-services-tar:hover .img-services img {
    filter: brightness(1);
    transform: scale(1.2);
}

.content-servicios {
    width: 50%;
    padding: 0.4rem 1rem;
    text-align: left;
}

.card-servicio:hover {
    border-bottom: 6px solid var(--color-primary);
    box-shadow: 0 0 10px var(--shadow-border);
}

.img-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    filter: brightness(0.6);
    transition: filter 0.7s ease, transform 0.7s ease;
}

.card-servicio:hover .img-container img {
    filter: brightness(1);
    transform: scale(1.2);
}

.reverse {
    flex-direction: row-reverse;
}

.card-servicio .contenido {
    padding: 1rem;
    text-align: left;
}

.contenido button {
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 7px;
    margin-top: 17px;
    margin-bottom: 9px;
    padding: 10px 0px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.4s, color 0.4s, padding 0.4s;
}

.card-servicio:hover .contenido button {
    background-color: var(--color-primary);
    color: var(--text-contrast);
    padding: 10px 20px;
}

.card-servicio h3 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    color: var(--color-primary);
}

.servicios ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.servicios li {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-left: 5px solid var(--color-primary);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.card-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    background-color: var(--bg-quaternary);
    border: 3px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem;
}

.card-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    margin-top: 14px;
    margin-bottom: 14px;
    filter: brightness(1);
    transition: all 0.4s ease;
}

.card-box:hover img {
    filter: brightness(0.3);
    transform: rotateY(180deg);
}

.card-box h3 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.card-box p,
.contenido p {
    font-size: 1rem;
    color: var(--text-quaternary) !important;
    text-align: left;
}

.tap-tap {
    position: absolute;
    top: 63%;
    left: 50%;
    transform: translate(-50%, -40%);
    font-size: 44px !important;
    z-index: 50;
    transition: all 0.4s;
}

.tap-tap i {
    display: none;
    color: var(--text-secondary) !important;
}

.card-box strong {
    display: flex;
    text-align: center;
    max-width: 220px;
    font-size: 21px;
    color: var(--text-bright);
}

.card-box-after {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    transform: translate(-50%, -40%);
    pointer-events: none;
    transition: all 0.7s ease;
}

.card-box:hover .card-box-after {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.card-box-after p {
    color: var(--text-secondary) !important;
    padding: 4px 11px;
}

.card-box-after i {
    vertical-align: middle;
    color: var(--color-primary);
}

.proceso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* ======================================
   Pasos / proceso
   ====================================== */
.paso-box {
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-quaternary);
    padding: 2rem 1rem;
    border-radius: 12px;
    text-align: left;
    transition: all 0.5s ease;
    box-shadow: 0 4px 8px var(--shadow-subtle);
}

.paso-box:hover {
    border: 2px solid var(--color-primary);
}

.paso-box.paso-activo {
    border: 2px solid var(--color-primary);
}

.numero-paso {
    font-size: 2.7rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.paso-box h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.descripcion {
    font-size: 0.95rem;
    color: var(--text-subtle);
    margin: 0;
    line-height: 1.5;
}

/* ======================================
   Sección Contacto
   ====================================== */
.contact-container {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    gap: 30px;
    margin-top: 50px;
}

.contact-card {
    border: none;
    box-shadow: none;
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-contrast);
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--bg-primary);
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.contact-value {
    max-width: fit-content;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.4;
}

.contact-value a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-value a:hover {
    color: var(--color-primary);
}

.phone-number {
    display: block;
    margin-bottom: 0.3rem;
}

.schedule-day {
    display: block;
    margin-bottom: 0.3rem;
}

.schedule-day:last-child {
    margin-bottom: 0;
}

/* ======================================
   Botón ir arriba
   ====================================== */
#btn-ir-arriba {
    position: fixed;
    bottom: 30px;
    right: 25px;
    z-index: 99;
    font-size: 27px;
    background-color: var(--color-primary);
    color: var(--text-contrast);
    border: none;
    outline: none;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 7px;
    display: none;
    transition: all 0.3s ease;
}

#btn-ir-arriba:hover {
    background-color: var(--color-primary-hover);
}

/* ======================================
   Botón Whatsapp
   ====================================== */
.whatsapp-button {
    position: fixed;
    bottom: 95px;
    right: 23px;
    background-color: var(--color-whatsapp);
    color: var(--text-secondary);
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--shadow-whatsapp);
    text-decoration: none;
    z-index: 1000;
    transform: scale(0);
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background-color: var(--color-whatsapp-hover);
}

.whatsapp-button.whatsapp-visible {
    transform: scale(1);
}

/* ======================================
   Clases adicionales / textos
   ====================================== */
.strong {
    font-weight: bold;
    color: var(--color-primary);
}

.b {
    font-weight: bold;
    color: var(--text-secondary);
}

.mis-vis-vlr {
    width: 80%;
}

.p {
    font-size: 1rem;
    margin-top: 1.1rem;
    margin-bottom: 3rem;
}

ins {
    text-decoration: underline;
}

.clic {
    font-size: 1rem !important;
}

.clic::before {
    content: "Conocer más";
    opacity: 0.8;
    transition: all 0.4s ease;
}

.card-box:hover .clic::before {
    opacity: 0;
}

/* ======================================
   Footer / pie de página
   ====================================== */
footer {
    background-color: var(--bg-dark);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    border-top: 2px solid var(--color-primary);
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-columns>div {
    flex: 1;
    min-width: 250px;
}

.footer-about,
.footer-contact,
.footer-social {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.footer-about h4,
.footer-contact h4,
.footer-social h4 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 11px;
}

.footer-about p,
.footer-contact p,
.footer-social p {
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.footer-about strong,
.footer-contact strong,
.footer-social strong {
    font-weight: 200;
    color: var(--text-muted);
}

.footer-contact a,
.footer-social a {
    text-decoration: none;
    color: var(--text-primary);
}

.contact-socials {
    margin-top: 25px;
}

.facebook:hover {
    color: var(--color-facebook) !important;
}

.footer-contact a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-quaternary);
    margin-top: 17px;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-top: 27px;
}

/* ======================================
   Media queries
   ====================================== */
/* 768px */
@media (max-width: 768px) {
    header {
        z-index: 1003;
    }

    nav {
        width: 100%;
        z-index: 1002;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 92px;
        right: 0;
        left: 0;
        align-items: flex-end;
        background-color: var(--bg-dark);
        padding: 20px;
        z-index: 1001;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .logo {
        margin-left: 35px;
    }

    nav ul li {
        margin-right: 25px;
    }

    .menu-toggle {
        margin-right: 35px;
    }

    nav ul.show {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .menu-toggle {
        display: flex;
    }

    .container h1 {
        width: 100%;
    }

    .hero {
        display: flex;
    }

    .home h2 {
        font-size: 2rem;
        width: 80%;
    }

    /* Quita efecto hover si NO tiene la clase scroll-hover */
    .sectores li:not(.scroll-hover):hover,
    .sectores li:not(.scroll-hover):hover img,
    .sectores li:not(.scroll-hover):hover::after {
        background-color: initial !important;
        border-top: 3px solid transparent !important;
        border-bottom: none !important;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }

    /* Aplica efecto scroll-hover siempre que esté la clase */
    .sectores li.scroll-hover {
        background-color: var(--bg-lighter);
        border-top: 3px solid var(--color-primary);
        border-bottom: 3px solid var(--color-primary);
    }

    .sectores li.scroll-hover::after {
        opacity: 1;
    }

    .sectores li.scroll-hover img {
        transform: scale(1.03);
        filter: brightness(1);
    }

    .cards-services-tar {
        flex-direction: column;
    }

    .img-services,
    .content-servicios {
        width: 100%;
    }

    .content-servicios {
        margin-bottom: 2rem;
    }

    .card-area {
        padding: 0 0;
        color: var(--text-secondary);
    }

    .nosotros {
        flex-direction: column;
    }

    .nosotros-info {
        margin: 0;
        order: 1;
    }

    .nosotros-img {
        order: 2;
    }

    .nosotros-img img {
        width: 80%;
        height: auto;
        margin-top: 40px;
    }

    .mis-vis-vlr {
        width: 100%;
    }

    .gallery {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 10px;
    }

    .gallery-item {
        flex: 0 0 auto;
        width: 80vw;
        max-width: 400px;
    }

    .gallery::-webkit-scrollbar {
        display: none;
    }

    .nav-button {
        display: block;
    }

    .contact-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .contact-item {
        margin-bottom: 1.5rem;
    }

    .contact-value {
        font-size: 1rem;
    }
}

/* 480px */
@media (max-width: 480px) {
    .logo img {
        width: 105px;
        height: auto;
    }

    .container h1 {
        font-size: 2rem;
    }

    .hero {
        display: flex;
        margin-top: 0px;
    }

    .home h2 {
        font-size: 1.5rem;
        width: 80%;
    }

    .hero-services {
        height: 270px;
        background-position: 50% 100%;
    }

    .card-box-after {
        top: 60% !important;
    }

    .card-box-after p {
        font-size: 0.89rem;
    }

    .pilar.pilar-activo {
        transform: translateY(-5px);
        background-color: var(--bg-tertiary);
        box-shadow: 0 8px 16px var(--shadow-gray);
        border-bottom: 3px solid var(--color-primary);
        transition: transform 0.3s ease, box-shadow 0.4s ease, border-bottom 0.4s ease, background-color 0.2s ease;
    }

    .tap-tap {
        opacity: 0;
    }

    .card-box.tap-visible .tap-tap {
        opacity: 0.7;
    }

    .card-box:hover .tap-tap {
        opacity: 0;
    }

    .paso-box {
        transition: all 0.5s ease;
    }

    .tap-tap {
        display: inline-block;
    }

    .tap-tap::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0);
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(1.5);
        z-index: 0;
        animation: shadow-burst 2s infinite;
    }

    @keyframes shadow-burst {
        0% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 0.4;
        }

        30% {
            transform: translate(-50%, -50%) scale(1.3);
            opacity: 0.2;
        }

        60% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 0.4;
        }

        100% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 0.4;
        }
    }

    .tap-tap i {
        display: block;
    }

    .remove-card {
        display: none !important;
    }

    .contact-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .contact-item {
        margin-bottom: 1rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        margin-right: 1rem;
        font-size: 1.1rem;
    }

    .contact-info {
        width: 100%;
    }

    .contact-value {
        font-size: 0.9rem;
    }

    .contact-label {
        font-size: 0.9rem;
    }

    .clic {
        display: none !important;
    }

    .link-contact {
        text-decoration: underline;
    }
}

/* 350px */
@media (max-width: 350px) {
    header h1 {
        font-size: 1.5rem;
    }

    .container h1 {
        font-size: 1.5rem;
    }

    .home h2 {
        font-size: 1.2rem;
        width: 90%;
    }
}

/* 320px */
@media (max-width: 320px) {
    .contact-item {
        margin-bottom: 0.8rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .contact-value {
        font-size: 0.85rem;
    }
}