/* ================================
   HUELLA DIGITAL
   Technology & Digital Projects
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #080b0d;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

/* ================================
   HEADER
================================ */

.main-header {
    width: 100%;
    min-height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    background: rgba(3, 8, 12, 0.72);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* BRAND */

.brand-text h2 {
    font-size: 22px;
    letter-spacing: 2px;
}

.brand-text p {
    margin-top: 5px;

    font-size: 9px;
    letter-spacing: 3px;

    color: #ffcc33;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
}

/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.main-nav a {
    color: #ffffff;

    text-decoration: none;

    font-size: 14px;

    transition: 0.3s;
}

.main-nav a:hover {
    color: #ffcc33;
}

/* CONTACT BUTTON */

.contact-btn {
    background: #ffcc33;
    color: #080b0d;

    padding: 13px 22px;

    border-radius: 7px;

    text-decoration: none;

    font-size: 14px;
    font-weight: bold;

    transition: 0.3s;
}

.contact-btn:hover {
    transform: translateY(-2px);
}
/* ================================
   HERO
================================ */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 80px 6%;

    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 40%,
            rgba(255, 204, 51, 0.08),
            transparent 35%
        ),
        #080b0d;
}

.hero-content {
    max-width: 720px;
}

/* SMALL TEXT ABOVE TITLE */

.hero-eyebrow {
    margin-bottom: 22px;

    color: #b8b8b8;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 5px;
}

/* MAIN TITLE */

.hero h1 {
    font-size: clamp(55px, 6vw, 92px);

    line-height: 0.95;

    letter-spacing: -3px;

    margin-bottom: 30px;
}

.hero h1 span {
    color: #ffcc33;
}

/* DESCRIPTION */

.hero-description {
    max-width: 610px;

    color: #c7c7c7;

    font-size: 20px;

    line-height: 1.6;

    margin-bottom: 38px;
}

/* BUTTONS */

.hero-buttons {
    display: flex;
    gap: 16px;
}

.primary-btn,
.secondary-btn {
    display: inline-block;

    padding: 16px 26px;

    border-radius: 7px;

    text-decoration: none;

    font-size: 15px;
    font-weight: bold;

    transition: 0.3s;
}

.primary-btn {
    background: #ffcc33;
    color: #080b0d;
}

.secondary-btn {
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.45);
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-3px);
}

.secondary-btn:hover {
    border-color: #ffcc33;
    color: #ffcc33;
}
.hero-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: 40% center;

    z-index: 0;
}

/* En computador usamos el video horizontal */
.hero-video-desktop {
    display: block;
}

.hero-video-mobile {
    display: none;
}

/* DARK OVERLAY OVER VIDEO */

.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(3, 8, 12, 0.90) 0%,
        rgba(3, 8, 12, 0.72) 32%,
        rgba(3, 8, 12, 0.35) 58%,
        rgba(3, 8, 12, 0.08) 100%
    );

    z-index: 1;
}

/* HERO CONTENT ABOVE VIDEO */

.hero-content {
    position: relative;
    z-index: 2;
}

.menu-toggle {
    display: none;
}

/* ================================
   MOBILE
================================ */

@media (max-width: 768px) {

    .hero {
        min-height: 100svh;
        padding: 120px 24px 70px;
        align-items: flex-end;
    }

    .hero-video {
        object-position: center center;
    }

    .hero-video-desktop {
    display: none;
    }

    .hero-video-mobile {
    display: block;
    }
    .main-nav {
        display: none;
    }

    .contact-btn {
        display: none;
    }

    .main-header {
        min-height: 90px;
        padding: 0 24px;
    }

    .brand-logo {
        width: 58px;
        height: 58px;
    }

    .brand-text h2 {
        font-size: 20px;
    }

    .brand-text p {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .hero h1 {
        display: none;
    }

    .hero-content {
        width: 100%;
        max-width: none;
    }

    .hero-eyebrow {
    font-size: 8px;
    letter-spacing: 2.5px;
    margin-bottom: 10px;
}

.hero-description {
    font-size: 12px;
    line-height: 1.4;
    max-width: 270px;
    margin-bottom: 16px;
}

.hero-buttons {
    gap: 10px;
}

.primary-btn,
.secondary-btn {
    padding: 11px 17px;
    font-size: 12px;
    border-radius: 6px;
}

.menu-toggle {
    display: block;
    margin-left: auto;

    background: transparent;
    border: none;

    color: #ffcc33;
    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

}


/* ================================
   FEATURED PROJECTS
================================ */

.projects-section {
    background: #080b0d;
    padding: 100px 6%;
    color: #ffffff;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 40px;
}

.section-eyebrow {
    color: #ffcc33;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 14px;
}

.projects-header h2 {
    font-size: clamp(34px, 4vw, 54px);
    margin-bottom: 14px;
}

.projects-header h2 span {
    color: #ffcc33;
}

.projects-header p:not(.section-eyebrow) {
    color: #b8b8b8;
    font-size: 16px;
}

.projects-all-btn {
    display: inline-block;
    padding: 13px 20px;
    color: #ffcc33;
    border: 1px solid #ffcc33;
    border-radius: 7px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.projects-all-btn:hover {
    background: #ffcc33;
    color: #080b0d;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

/* RESPONSIVE PROJECTS */

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .projects-section {
        padding: 65px 24px;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   PROJECT CARDS
================================ */

.project-card {
    background: #101820;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: #ffcc33;
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #172331;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 22px;
}

.project-info h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.project-info p {
    color: #b8b8b8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.project-link {
    display: inline-block;
    padding: 11px 18px;
    color: #ffcc33;
    border: 1px solid #ffcc33;
    border-radius: 7px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
}

.project-link:hover {
    background: #ffcc33;
    color: #080b0d;
}


/* ==================================
   TECHNOLOGY & TOOLS
================================== */

.technology-section {
    padding: 85px 6%;
    background:
        linear-gradient(
            120deg,
            rgba(5, 18, 32, 0.96),
            rgba(8, 35, 57, 0.95)
        );
}

.technology-header {
    margin-bottom: 35px;
}

.technology-header h2 {
    font-size: clamp(30px, 3vw, 42px);
    margin: 12px 0;
    color: #ffffff;
}

.technology-header h2 span {
    color: #ffcc33;
}

.technology-header > p:last-child {
    color: #c7d2dc;
    font-size: 15px;
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 15px;
}

.technology-card {
    min-height: 105px;
    padding: 18px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background: rgba(12, 36, 57, 0.85);
    border: 1px solid rgba(255, 204, 51, 0.18);
    border-radius: 9px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 600;

    transition: transform 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.technology-card:hover {
    transform: translateY(-6px);
    border-color: #ffcc33;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* TABLET */

@media (max-width: 1024px) {
    .technology-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* MOBILE */

@media (max-width: 768px) {
    .technology-section {
        padding: 60px 24px;
    }

    .technology-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .technology-card {
        min-height: 90px;
        font-size: 12px;
    }
}


/* ==================================
   TECHNOLOGY ICONS - FINAL DESIGN
================================== */

.technology-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 120px;
    padding: 18px 10px;
}

.technology-card i {
    font-size: 42px;
    line-height: 1;
}

.technology-card .technology-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.technology-card span {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.ai-icon {
    color: #ffffff !important;
}

.trends-icon {
    color: #4285F4;
}

/* ================================
   ABOUT HUELLA DIGITAL
================================ */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 100px 6%;
    background: #080b0d;
}

.about-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h2 {
    font-size: clamp(32px, 3.5vw, 48px);
    margin: 15px 0 25px;
}

.about-content h2 span {
    color: #ffcc33;
}

.about-content > p:not(.section-eyebrow) {
    color: #c7c7c7;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-content .primary-btn {
    margin-top: 15px;
}

/* MOBILE */

@media (max-width: 768px) {

    .about-section {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 65px 24px;
    }

    .about-image {
        height: 260px;
    }

    .about-content h2 {
        font-size: 32px;
    }

    .about-content > p:not(.section-eyebrow) {
        font-size: 15px;
    }
}

/* =================================
   ABOUT - CINEMATIC VIDEO REFINEMENT
================================= */

.about-section {
    grid-template-columns: 560px minmax(0, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 85px 6%;
}

.about-image {
    width: 100%;
    height: 315px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 204, 51, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.about-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* TABLETS */

@media (max-width: 900px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-image {
        max-width: 520px;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* MOBILE */

@media (max-width: 768px) {
    .about-section {
        padding: 65px 24px;
    }

    .about-image {
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}


/* =========================
   CONTACT - HUELLA DIGITAL
========================= */

.contact-section {
    padding: 100px 6%;
    background: #0d1218;
}

.contact-header {
    max-width: 750px;
    margin: 0 auto 45px;
    text-align: center;
}

.contact-header h2 {
    font-size: clamp(32px, 4vw, 52px);
    color: #ffffff;
    margin: 15px 0 20px;
}

.contact-header h2 span {
    color: #ffcc33;
}

.contact-header > p:not(.section-eyebrow) {
    color: #bfc6ce;
    font-size: 17px;
    line-height: 1.8;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    background: #151c24;
    border: 1px solid #303b46;
    border-radius: 10px;
    color: #ffffff;
    font: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ffcc33;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #929da8;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    align-self: center;
    cursor: pointer;
    border: none;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 70px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-header > p:not(.section-eyebrow) {
        font-size: 15px;
    }
}

/* =========================
   MEET THE FOUNDER
========================= */

.founder-section {
    background: #07111f;
    padding: 100px 8%;
    display: flex;
    justify-content: center;
}

.founder-content {
    max-width: 850px;
    text-align: center;
}

.founder-content .section-eyebrow {
    color: #ffcc32;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.founder-content h2 {
    color: #ffffff;
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 18px;
}

.founder-content h2 span {
    color: #ffcc32;
}

.founder-content h3 {
    color: #ffffff;
    font-size: 25px;
    margin-bottom: 25px;
}

.founder-content p {
    color: #bfc7d1;
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 22px;
}

.founder-content .primary-btn {
    display: inline-block;
    margin-top: 20px;
}

/* =========================
   FOUNDER — TWO COLUMN LAYOUT
========================= */

.founder-section {
    display: grid;
    grid-template-columns: 40% 1fr;
    align-items: center;
    gap: 60px;
    padding: 100px 8%;
    background: #07111f;
}

/* Founder photograph */

.founder-image {
    width: 100%;
}

.founder-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    border: 1px solid #ffcc32;
    display: block;
}

/* Founder information */

.founder-content {
    max-width: 700px;
    text-align: left;
}

/* Responsive layout */

@media (max-width: 768px) {

    .founder-section {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 70px 6%;
    }

    .founder-image img {
        max-height: 420px;
    }

    .founder-content {
        text-align: center;
    }
}

/* =========================
   FOUNDER — PHOTO SIZE ADJUSTMENT
========================= */

.founder-section {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 65px;
    justify-content: center;
}

.founder-image {
    width: 100%;
    max-width: 320px;
    justify-self: center;
}

.founder-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center 35%;
}

@media (max-width: 768px) {
    .founder-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .founder-image {
        max-width: 260px;
    }

    .founder-image img {
        height: 260px;
    }
}

/* FOUNDER — SECONDARY BUTTON */

.founder-content a[href="#contact"] {
    background: transparent;
    color: #ffcc32;
    border: 1px solid #ffcc32;
    margin-left: 12px;
}

.founder-content a[href="#contact"]:hover {
    background: #ffcc32;
    color: #07111f;
}

@media (max-width: 768px) {
    .founder-content a[href="#contact"] {
        margin-left: 0;
        margin-top: 12px;
    }
}

/* FOUNDER — MOBILE BUTTON SPACING */

@media (max-width: 768px) {

    .founder-content .primary-btn {
        margin: 8px 4px;
    }

    .founder-content a[href="#contact"] {
        margin-left: 4px;
    }

}

/* =========================
   FOUNDER — TYPOGRAPHY ADJUSTMENT
========================= */

.founder-content h2 {
    font-size: clamp(28px, 3vw, 42px);
}

.founder-content h3 {
    font-size: 20px;
}

.founder-content p:not(.section-eyebrow) {
    font-size: 16px;
    line-height: 1.7;
}

@media (max-width: 768px) {

    .founder-content h2 {
        font-size: 30px;
    }

    .founder-content h3 {
        font-size: 18px;
    }

    .founder-content p:not(.section-eyebrow) {
        font-size: 15px;
        line-height: 1.7;
    }
}


/* =========================
   LANGUAGE SWITCHER
========================= */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid #facc15;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: #facc15;
    color: #111827;
}


/* ==========================================
   SERVICES / SERVICIOS
========================================== */

.services-section {
  background: #081322;
  padding: 100px 24px;
  color: #ffffff;
}

.services-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.services-eyebrow {
  color: #facc15;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.services-header h2 {
  color: #ffffff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  margin-bottom: 14px;
}

.services-header > p:last-child {
  color: #cbd5e1;
  line-height: 1.7;
}

/* Four cards */

.services-layout {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1050px;
  margin: 0 auto;
}

.service-card {
  background: #14243a;
  border: 1px solid #34435a;
  border-radius: 16px;
  padding: 28px;
  min-height: 225px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: #273647;
  border-radius: 10px;
  color: #facc15;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
}

.service-icon svg {
  width: 25px;
  height: 25px;
  stroke: #facc15;
}

.service-card h3 {
  color: #ffffff;
  font-size: 20px;
  margin: 0 0 12px;
}

.service-card p {
  color: #bac5d4;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 22px;
}

.service-card a {
  color: #facc15;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
}

/* Right-hand cards */

.service-marketing,
.service-intelligence {
  align-items: flex-end;
  text-align: right;
}

/* Central yellow circle */

.service-center {
  position: absolute;
  z-index: 2;
  width: 230px;
  height: 230px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #facc15;
  border: 9px solid #081322;
  color: #101827;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
}

.service-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.service-center-icon {
  color: #101827;
}

.service-center-icon svg {
  width: 30px;
  height: 30px;
}

.service-center h3 {
  font-size: 19px;
  line-height: 1.2;
  margin: 0;
  color: #101827;
}

.service-center p {
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  color: #101827;
}

.service-center a {
  color: #101827;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

/* Mobile: preserve readability */

@media (max-width: 700px) {
  .services-section {
    padding: 70px 16px;
  }

  .services-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    min-height: 190px;
    padding: 24px;
  }

  .service-marketing,
  .service-intelligence {
    align-items: flex-start;
    text-align: left;
  }

  .service-center {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 230px;
    height: 230px;
    margin: 12px auto;
    grid-row: 5;
  }
}


/* MOBILE — CLEAN HEADER WITHOUT NAVIGATION */
@media (max-width: 700px) {
  .menu-toggle,
  .main-nav {
    display: none !important;
  }
}
