/* ================================================================
   SALAZARGEO - CSS ORGANIZADO Y ESTRUCTURADO
   ================================================================ */

/* ===== VARIABLES CSS ===== */
:root {
    --primary-purple: #2D1B3D;
    --secondary-purple: #452B5A;
    --magenta: #E91E63;
    --bright-magenta: #FF4081;
    --accent-magenta: #c92eff;
    --light-gray: #F5F5F5;
    --dark-gray: #666;
    --text-light: #bdb9d3;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6,
.section-heading-large,
.hero-title,
.hero-name,
.services-title,
.newsletter-title,
.footer-section-title,
.glitch-text,
.service-tab,
.accordion-button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

p, li,
.hero-description,
.hero-credentials,
.footer-text,
.nav-link,
.newsletter-subtitle,
.accordion-body,
.stats-label,
.card-select,
.mini-card,
.badge,
.service-pane p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.btn,
.btn-login,
.newsletter-btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

/* ===== NAVEGACIÓN ===== */
/* Top Bar */
.top-bar {
    background: #1a1a1a;
    color: #888;
    font-size: 14px;
    padding: 8px 0;
}

/* Navbar Principal */
.navbar-custom {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    padding: 20px 0;
}

.navbar-brand {
    color: var(--magenta) !important;
    font-weight: bold;
    font-size: 24px;
}

.navbar-nav .nav-link {
    color: white !important;
    margin: 0 20px;
    font-weight: 400;
}

.social-icons a {
    color: #888;
    margin: 0 10px;
    text-decoration: none;
}

.btn-login {
    background: var(--magenta);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 25px;
    font-weight: 500;
}

/* Navbar Toggle */
.toggler-white .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler {
    border: var(--bs-border-width) solid rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgb(249, 249, 249);
}

/* ===== SECCIÓN HERO ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(ellipse 120% 50% at bottom center, #E8E3EF 0%, #8B7A9B 30%, #4a3b5ccc 61%, var(--primary-purple) 66%);
    overflow: hidden;
}

/* Fade inferior púrpura → blanco */
.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38vh;
    background: linear-gradient(to bottom,
                rgba(0,0,0,0) 0%,
                rgba(51,0,51,.15) 25%,
                rgba(255,255,255,.85) 90%,
                #fff 100%);
    pointer-events: none;
}

/* Contenedor de diapositivas */
.hero-carousel {
    height: 100%;
    position: relative;
}

/* Cada diapositiva */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
}

.hero-slide.active {
    opacity: 1;
}

/* Contenido del Hero */
.hero-content {
    padding: 80px 0;
    color: #fff;
}

.logo-image {
    width: 82px;
    height: 82px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 15px;
}

.hero-name {
    font-size: 28px;
    font-weight: 300;
    color: #9d9aa8;
    margin-bottom: 25px;
}

.hero-description {
    line-height: 1.55;
    font-size: 16px;
    margin-bottom: 12px;
}

.hero-credentials {
    font-size: 13px;
    color: #dcdcdc;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Navegación numerada lateral */
.navigation-dots {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.nav-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.6);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: all .25s ease;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.nav-dot:hover {
    border-color: #fff;
    background: rgba(255,255,255,.1);
}

.nav-dot.active {
    background: rgba(255,255,255,.2);
    border-color: #fff;
}

/* Estilo especial para texto PhD Christian Salazar */
.fuente_texto {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 50px;
    line-height: 78px;
    text-transform: capitalize;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, #FFFFFF 50%, rgba(255, 255, 255, 0.2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* ===== SECCIÓN DE CONTENIDO (EXPERIENCE) ===== */
.content-section {
    position: relative;
    padding: 120px 0 100px;
    overflow: hidden;
}

/* Título principal grande */
.section-heading-large {
    font-size: clamp(2.3rem, 5vw, 64px);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 3rem;
    color: #111;
}

/* Bloque gris que cambia */
.image-display {
    width: 100%;
    height: 470px;
    background: #d1d1d1 center/cover no-repeat;
    border-radius: 48px;
    transition: .5s;
}

/* Cards de la derecha */
.card-select {
    cursor: pointer;
    background: rgba(255,255,255,.85);
    border-radius: 20px;
    padding: 38px 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,.06);
    transition: transform .25s, box-shadow .25s;
    font-weight: 500;
    color: #000;
}

.card-select:hover {
    transform: translateY(-6px);
}

.card-select.active {
    box-shadow: 0 16px 48px rgba(201,46,255,.25);
}

/* Card magenta */
.card-select.magenta {
    background: #c92eff;
    color: #fff;
}

/* Texto lateral */
.glitch-text {
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .5px;
}

.experience-text {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

/* Flecha */
.arrow-link {
    display: inline-block;
    font-size: 26px;
    color: #000;
    margin-top: 25px;
    text-decoration: none;
    transition: transform .25s;
}

.arrow-link:hover {
    transform: translateX(4px);
}

/* ===== SECCIÓN SERVICIOS ===== */
.services-section {
    padding: 120px 0;
    position: relative;
    /* Leve halo magenta en esquina superior-derecha */
    background: radial-gradient(130% 120% at 75% 0%,
                rgba(201,46,255,.06) 0%,
                #ffffff 70%);
}

/* Pestañas */
.service-nav {
    font-weight: 500;
    font-size: 15px;
}

.service-tab {
    cursor: pointer;
    color: #000;
    position: relative;
    padding-bottom: 6px;
    transition: color .25s;
}

.service-tab:hover {
    color: #c92eff;
}

.service-tab.active {
    color: #c92eff;
}

.service-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 1px;
    background: #c92eff;
}

/* Panes (uno por pestaña) */
.service-pane {
    display: none;
}

.service-pane.active {
    display: block;
}

/* Títulos y textos */
.services-title {
    font-size: clamp(2rem, 4vw, 48px);
    font-weight: 600;
    line-height: 1.15;
}

.service-pane h3 {
    font-size: clamp(1.25rem, 2.5vw, 30px);
    font-weight: 600;
}

.service-pane p {
    max-width: 480px;
}

.dot-line {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000;
}

.line {
    width: 80px;
    height: 1px;
    background: #000;
    margin-left: 8px;
}

/* Imagen de servicios */
.services-img-placeholder {
    width: 100%;
    height: 340px;
    background: #d4d4d4 center/cover no-repeat;
    border-radius: 26px;
    transition: .4s;
}

/* Mini-card */
.mini-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    min-width: 190px;
    box-shadow: 0 8px 32px rgba(0,0,0,.04);
    transition: transform .25s, box-shadow .25s;
}

.mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,.08);
}

.mini-card .badge {
    font-size: .75rem;
    padding: .35rem .55rem;
}

/* Números grandes */
.stats-number {
    font-size: clamp(50px, 7vw, 120px);
    font-weight: 700;
    line-height: 1;
}

.stats-label {
    font-size: 15px;
    color: #555;
}

/* ===== PORTFOLIO SLIDER ===== */
#portfolio-slider * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

#portfolio-slider {
    background-color: #eeeeea;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#portfolio-slider .wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#portfolio-slider .container-cards {
    height: 450px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: start;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#portfolio-slider .container-cards::-webkit-scrollbar {
    display: none;
}

#portfolio-slider .card {
    min-width: 70px;
    width: 80px;
    border-radius: 2rem;
    background-position: center;
    background-color: #ddd;
    cursor: pointer;
    overflow: hidden;
    margin: 0 10px;
    transition: .6s cubic-bezier(.28,-0.03,0,.99);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#portfolio-slider .icon {
    background: #223;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

#portfolio-slider .description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    height: 90px;
    max-width: 520px;
    opacity: 0;
    transform: translateY(30px);
    transition: all .3s ease;
    color: white;
    padding: 0 15px 15px 15px;
    z-index: 1;
}

#portfolio-slider .description h4 {
    text-transform: uppercase;
    margin: 0;
}

#portfolio-slider .description p {
    color: #fdfdfd;
    margin: 0;
    padding-top: 5px;
}

#portfolio-slider input[type="radio"] {
    display: none;
}

#portfolio-slider input[type="radio"]:checked + label {
    width: 90vw;
    max-width: 600px;
}

#portfolio-slider input[type="radio"]:checked + label .description {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECCIÓN ARTÍCULOS ===== */
.articles-section .accordion-item {
    border: 0;
    background: transparent;
    margin-bottom: 22px;
}

.accordion-button {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    font-weight: 600;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    transition: .25s;
}

.accordion-button::after {
    filter: invert(.25);
}

.accordion-button:not(.collapsed) {
    border-left: 4px solid #ba00ff;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
}

.accordion-body {
    background: #fafafa;
    border-radius: 0 0 12px 12px;
    padding: 18px 24px;
}

.gallery-track img {
    flex: 0 0 calc(33.333% - 16px);
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
}

/* Separar los ítems de los dos acordeones */
.article-accordion .accordion-item,
.side-accordion .accordion-item {
    border: 0;
    background: transparent;
    margin-bottom: 22px;
}

.article-accordion .accordion-item:last-child,
.side-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

/* ===== NEWSLETTER Y FOOTER ===== */
.newsletter-section {
    padding: 120px 0 60px;
    color: var(--text-light);
    background: var(--primary-purple);
    position: relative;
}

.newsletter-title {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 14px !important;
    color: var(--light-gray);
}

.newsletter-subtitle {
    color: #bdb9d3;
    margin-bottom: 40px;
}

.newsletter-form {
    max-width: 480px;
    display: flex;
    gap: 14px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,.25);
    background: transparent;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
}

.newsletter-input::placeholder {
    color: #8581a1;
}

.newsletter-btn {
    white-space: nowrap;
    background: var(--magenta);
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 600;
    color: #fff;
    transition: .25s;
}

.newsletter-btn:hover {
    filter: brightness(1.12);
}

/* Separador horizontal */
.newsletter-divider {
    border-top: 2px solid rgba(255,255,255,.22);
    opacity: .9;
}

/* Footer */
.footer {
    padding: 100px 0 40px;
    color: var(--text-light);
    position: relative;
    background: var(--primary-purple);
}

.footer a {
    color: #bdb9d3;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

.footer-brand {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.footer-text {
    color: #bdb9d3;
    font-size: 14px;
}

.social-links a {
    color: #fff;
    background: rgba(255,255,255,.12);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: .25s;
}

.social-links a:hover {
    background: var(--accent-magenta);
}

.social-links a:visited {
    color: #fff;
}

.footer-bottom {
    border-top: 0px solid rgba(255,255,255,.22);
    margin-top: 50px;
    padding-top: 22px;
    font-size: 13px;
    color: #847fa2;
    text-align: center;
}

.footer-logo {
    position: absolute;
    right: 60px;
    bottom: 60px;
    width: 96px;
    height: 96px;
    border: 3px solid var(--accent-magenta);
    color: var(--accent-magenta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    font-weight: 700;
    background: rgba(0,0,0,.15);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets - max-width: 991.98px */
@media (max-width: 991.98px) {
    .navigation-dots {
        right: 15px;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .hero-name {
        font-size: 34px;
    }

    .hero-content {
        padding: 10px 0;
        color: #fff;
    }

    .image-display {
        height: 360px;
        margin-bottom: 40px;
    }
    
    .card-select {
        padding: 28px 24px;
    }

    .services-img-placeholder {
        height: 280px;
        margin-bottom: 40px;
    }
    
    .service-nav {
        justify-content: center !important;
    }
    
    .service-tab {
        padding-bottom: 4px;
    }
    
    .stats-number {
        font-size: 64px;
    }

    .newsletter-form {
        max-width: 100%;
    }
    
    .footer-logo {
        display: none;
    }
}

/* Móviles - max-width: 768px */
@media (max-width: 768px) {
    .hero-section {
        position: relative;
        min-height: 170vh;
         background: radial-gradient(ellipse 160% 33% at bottom center, #E8E3EF 0%, #cecece 51%, #4a3b5ccc 61%, #2d1b3d 69%);
        overflow: hidden;
    }

    .hero-content {
        padding: 60px 0 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .hero-name {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .hero-credentials {
        font-size: 12px;
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .logo-image {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .nav-dot {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }

    .hero-image {
        margin-top: 20px;
        max-width: 90%;
    }

    .hero-section::after {
        height: 25vh;
    }

    .mobile-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: calc(100vh - 120px);
        justify-content: center;
        padding-bottom: 80px;
    }

    .text-content {
        order: 1;
        margin-bottom: 20px;
    }

    .image-content {
        order: 2;
    }

    .gallery-track img {
        height: 190px;
    }

    /* Portfolio móvil */
    #portfolio-slider {
        height: auto;
        padding: 40px 0;
    }

    #portfolio-slider .card {
        height: 320px;
        margin: 0 6px;
    }

    #portfolio-slider .description {
        height: auto;
        font-size: 0.9rem;
    }

    #portfolio-slider .icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Móviles pequeños - max-width: 480px */
@media (max-width: 480px) {
    .hero-section {
        position: relative;
        min-height: 170vh;
        background: radial-gradient(ellipse 160% 33% at bottom center, #E8E3EF 0%, #cecece 51%, #4a3b5ccc 61%, #2d1b3d 69%);
        overflow: hidden;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-name {
        font-size: 20px;
    }

    .hero-description {
        font-size: 14px;
    }

    .navigation-dots {
        position: absolute;
        bottom: 20px;
        left: 50%;
        top: auto;
        right: auto;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 10px;
    }

    .nav-dot {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .hero-image {
        width: 80%;
        margin-top: 20px;
    }
}

/* Responsive para fuente_texto */
@media (min-width: 576px) {
    .fuente_texto {
        font-size: 28px;
    }
}

@media (min-width: 768px) {
    .fuente_texto {
        font-size: 32px;
    }
}

@media (min-width: 992px) {
    .fuente_texto {
        font-size: 50px;
    }
}

@media (min-width: 1200px) {
    .fuente_texto {
        font-size: 50px;
    }
}
    


/* En móvil, cambiar de justify-content-end a justify-content-center */
@media (max-width: 991.98px) {
  .service-nav {
    justify-content: center !important;
  }
  
  .service-tab {
    padding-bottom: 4px;
  }
}




    #portfolio-slider * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: Arial, Helvetica, sans-serif;
    }

    #portfolio-slider {
      background-color: #eeeeea;
      width: 100%;
      height: 70vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    #portfolio-slider .wrapper {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    #portfolio-slider .container-cards {
      height: 450px;
      display: flex;
      flex-wrap: nowrap;
      justify-content: start;
      overflow-x: auto;         /* Habilita scroll en móviles */
      scrollbar-width: none;    /* Firefox */
      -ms-overflow-style: none; /* IE */
    }

    #portfolio-slider .container-cards::-webkit-scrollbar {
      display: none;            /* Chrome y Safari */
    }

    #portfolio-slider .card {
      min-width: 70px;
      width: 80px;
      border-radius: 2rem;
      
      background-position: center;
       background-color: #ddd;+
      cursor: pointer;
      overflow: hidden;
      margin: 0 10px;
     transition: .6s cubic-bezier(.28,-0.03,0,.99);
   
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;





    }

#portfolio-slider .icon {
  background: #223;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 15px; /* cambiado desde bottom */
  left: 15px;
  z-index: 2;
}

#portfolio-slider .description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  height: 90px;
  max-width: 520px;
  opacity: 0;
  transform: translateY(30px);
  transition: all .3s ease;
  color: white;
  padding: 0 15px 15px 15px; /* sin padding extra a la izquierda */
  z-index: 1;
}
    #portfolio-slider .description h4 {
      text-transform: uppercase;
      margin: 0;
    }

    #portfolio-slider .description p {
      color: #fdfdfd;
      margin: 0;
      padding-top: 5px;
    }

    #portfolio-slider input[type="radio"] {
      display: none;
    }

    #portfolio-slider input[type="radio"]:checked + label {
      width: 90vw;
      max-width: 600px;
    }

    #portfolio-slider input[type="radio"]:checked + label .description {
      opacity: 1;
      transform: translateY(0);
    }

    @media (max-width: 768px) {
      #portfolio-slider {
        height: auto;
        padding: 40px 0;
      }

      #portfolio-slider .card {
        height: 320px;
        margin: 0 6px;
      }

      #portfolio-slider .description {
        height: auto;
        font-size: 0.9rem;
      }

      #portfolio-slider .icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
      }
    }