html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #000000;
    --text-primary: #000000;
    --text-secondary: #ffffff;
    --accent: #333333;
    --border: #e0e0e0;
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #000000;
    --accent: #cccccc;
    --border: #333333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#loader {
    position: fixed;
    inset: 0;
    background: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── HEADER ── */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background-color: var(--bg-primary);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

.theme-toggle {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

/* ── HERO ── */
.hero {
    padding: 60px 0 80px 0;
    text-align: center;
}

.hero-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 20px;
    opacity: 0.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Contenedor principal adaptable */
.stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  padding: 60px 20px;
  
  /* Cambiamos el fondo blanco fijo por transparente o una variable */
  background-color: transparent; 
  max-width: 1100px;
  margin: 0 auto;
}

.stat {
  text-align: center;
  flex: 1;
  min-width: 200px;
  padding: 20px;
  position: relative;
}

/* Línea divisoria adaptable */
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  /* Usamos un color con opacidad para que se vea bien en cualquier fondo */
  background-color: rgba(128, 128, 128, 0.3); 
}

/* Títulos adaptables */
.stat h2 {
  font-size: 2.5rem;
  font-weight: 800;
  /* currentColor hereda el color de texto del padre (negro en light, blanco en dark) */
  color: currentColor; 
  margin: 0 0 8px 0;
  letter-spacing: -1px;
}

/* Párrafos adaptables */
.stat p {
  font-size: 0.95rem;
  /* Un color grisáceo que suele funcionar en ambos modos, o usa opacidad */
  color: currentColor;
  opacity: 0.7; 
  margin: 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stat {
    min-width: 45%;
    margin-bottom: 30px;
  }
  .stat:not(:last-child)::after {
    display: none;
  }
}

/* ── QUIÉNES SOMOS ── */
.about {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-identity {
    margin-top: 30px;
    text-align: 70px;
    margin-left: 95px
}

.identity-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1.5px solid var(--text-primary);
    color: var(--text-primary);
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.identity-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--bg-secondary);
    transform: translateY(-2px);
}

.section-title-left {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.1;
}

.about-text p {
    font-size: 17px;
    opacity: 0.8;
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-text p strong {
    opacity: 1;
    font-weight: 700;
}

.about-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-logo img {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* ── SERVICIOS ── */
.services {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    opacity: 0.8;
}

/* ── PORTAFOLIO ── */
.portfolio {
    padding: 80px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.portfolio-item {
    position: relative;
    height: 300px;
    background: var(--accent);
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    font-size: 14px;
    opacity: 0.85;
}

/* ── MODAL ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    overflow: hidden;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(0,0,0,0.7);
}

.modal-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
}

.modal-body {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-body h3 {
    font-size: 26px;
    font-weight: 700;
}

.modal-body p {
    font-size: 16px;
    opacity: 0.75;
    line-height: 1.7;
}

.modal-tech {
    font-size: 13px;
    opacity: 0.5;
    letter-spacing: 0.5px;
}

.modal-visit {
    display: inline-block;
    margin-top: 6px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    align-self: flex-start;
    cursor: pointer;
}

.modal-visit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ── GALERÍA CTA (botón entre proyectos y proceso) ── */
.gallery-cta {
    padding: 60px 0;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
}

.gallery-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 56px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
}

[data-theme="dark"] .gallery-cta-inner {
    border-color: rgba(0,0,0,0.12);
}

.gallery-cta-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gallery-cta-text p {
    font-size: 17px;
    opacity: 0.65;
    max-width: 440px;
}

.gallery-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: none;
    padding: 16px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-open-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ── GALERÍA VISTA SPA ── */
#galleryView {
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.gallery-header {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.gallery-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gallery-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-back-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--bg-secondary);
}

.gallery-title {
    font-size: 26px;
    font-weight: 700;
}

.gallery-grid-wrap {
    padding: 60px 0 80px;
}

.gallery-subtitle {
    text-align: center;
    font-size: 18px;
    opacity: 0.6;
    margin-bottom: 48px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-thumb {
    height: 240px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    border-radius: 12px;
}

.gallery-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.gallery-thumb:hover::after {
    background: rgba(0,0,0,0.2);
}

/* ── LIGHTBOX DE GALERÍA ── */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-box {
    position: relative;
    max-width: 900px;
    width: 100%;
    text-align: center;
    animation: modalIn 0.3s ease;
}

.lightbox-box img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-title {
    color: white;
    font-size: 16px;
    margin-top: 16px;
    opacity: 0.75;
}

/* Plans Section */
.plans {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 420px));
    gap: 24px;
    margin-top: 60px;
    margin-bottom: 80px;
    justify-content: center;
}

.plan-card {
    background: var(--bg-primary);
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.plan-card.featured {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    transform: none;
    box-shadow: none;
}

.plan-card.featured:hover {
    transform: scale(1.03) translateY(-6px);
}

.popular-badge {
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 11px;
    letter-spacing: 0.5px;
}

.plan-header {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.plan-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
}

.plan-price .currency {
    font-size: 16px;
    color: var(--text-primary);
}

.plan-price .amount {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.plan-period {
    font-size: 13px;
    color: var(--text-primary);
}

.plan-features {
    flex-grow: 1;
    margin-bottom: 30px;
}

.feature-highlight {
    font-weight: 700;
    font-size: 14px;
    margin-top: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.features-list li {
    padding: 8px 0;
    border-bottom: none;
    opacity: 0.8;
}

.features-list li {
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: '✓';
    font-size: 12px;
    opacity: 0.7;
}

.monthly-cost {
    background: rgba(0,0,0,0.03);
    color: var(--text-primary);
    padding: 14px 16px;
    margin: 20px 0;
    border-radius: 8px;
}

.monthly-cost p {
    margin: 3px 0;
    font-size: 14px;
}

.cost-note {
    font-size: 12px;
    opacity: 0.8;
}

.ideal-for {
    font-size: 13px;
    color: var(--text-primary);
    margin-top: 12px;
}

.plan-button {
    border-radius: 12px;
}

.plan-button {
    display: block;
    width: 100%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 14px;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
    transition: all 0.25s ease;
}

.plan-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

@media (max-width: 700px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plan-card.featured {
        transform: scale(1); /* importante en mobile */
    }
}

/* ── PROCESO ── */
.process {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.process-step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.faq {
    padding: 80px 0;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 26px;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--border);
}

.faq-icon {
    font-size: 22px;
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 26px;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 26px 22px;
}

.faq-answer p {
    font-size: 16px;
    opacity: 0.75;
    line-height: 1.8;
}

.rebranding-section {
    background-color: #0a0a0a;
    padding: 5rem 2rem;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.rebranding-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.rebranding-handle {
    font-size: 0.85rem;
    color: #888;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: color 0.2s;
}
.rebranding-handle:hover { color: #ffffff; }

.rebranding-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.rebranding-desc {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.rebranding-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rebranding-list li {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.rebranding-cta {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: #ffffff;
    color: #0a0a0a;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    transition: opacity 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}
.rebranding-cta:hover { opacity: 0.85; }

.rebranding-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rebranding-paper {
    position: relative;
    width: 550px;
    height: 550px;
}

.rebranding-paper-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.rebranding-logo-img {
    position: absolute;
    inset: 0;
    width: 60%;
    height: 60%;
    object-fit: contain;
    margin: auto;
    top: 0; left: 0; right: 25px; bottom: 40px;
}

@media (max-width: 768px) {
    .rebranding-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        padding: 20px !important;
    }

    .rebranding-logo {
        display: none !important;
    }

    .rebranding-text {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; 
        text-align: center !important;   
        margin: 0 auto !important;
    }

    .rebranding-list {
        padding: 0 !important;
        margin: 20px 0 !important;
        list-style: none !important;
        text-align: left !important; 
    }

    .rebranding-cta {
        width: fit-content !important;
        margin: 0 auto !important;
    }
}

/* ══════════════════════════════
   MODAL REBRANDING
══════════════════════════════ */
.rebranding-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
 
.rebranding-modal-overlay.active {
    display: flex;
}
 
.rebranding-modal-box {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
 
.rebranding-modal-header {
    text-align: center;
    padding: 48px 40px 32px;
    border-bottom: 1px solid var(--border);
}
 
.rebranding-modal-logo {
    width: 250px !important; /* El !important ayuda a descartar otros conflictos */
    max-width: none !important; 
    height: auto;
    margin: 0 auto 24px;
    display: block;
}
 
.rebranding-modal-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}
 
.rebranding-modal-subtitle {
    font-size: 17px;
    opacity: 0.65;
}
 
.rebranding-modal-body {
    padding: 40px;
}
 
.rebranding-modal-section {
    margin-bottom: 36px;
}
 
.rebranding-modal-section:last-of-type {
    margin-bottom: 0;
}
 
.rebranding-modal-section h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}
 
.rebranding-modal-section p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 14px;
}
 
.rebranding-modal-section p:last-child {
    margin-bottom: 0;
}
 
.rebranding-modal-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
 
.rebranding-modal-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.7;
}
 
.rebranding-modal-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.9;
}
 
.rebranding-modal-list li strong {
    font-weight: 600;
}
 
.rebranding-modal-cta {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-top: 32px;
}
 
.rebranding-modal-ready {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}
 
.rebranding-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 16px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}
 
.rebranding-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
 
.rebranding-modal-contact {
    font-size: 14px;
    opacity: 0.7;
}
 
.rebranding-modal-contact a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.2s;
}
 
.rebranding-modal-contact a:hover {
    opacity: 0.7;
}


/* ── CONTACTO ── */
.contact {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-instagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 50px 40px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
}

[data-theme="dark"] .contact-instagram {
    border-color: rgba(0,0,0,0.15);
}

.ig-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.ig-main-text {
    font-size: 20px;
    font-weight: 600;
    max-width: 420px;
}

.ig-sub-text {
    font-size: 16px;
    opacity: 0.65;
    max-width: 380px;
}

.ig-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 14px 36px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.ig-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.ig-handle {
    font-size: 15px;
    opacity: 0.5;
    letter-spacing: 0.5px;
}

/* ── FOOTER ── */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.footer-text {
    opacity: 0.7;
}

/* ── BOTÓN FLOTANTE INSTAGRAM ── */
.float-ig {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 14px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.float-ig:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.reveal-right {
    transform: translateX(30px);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-logo {
        order: -1;
    }
    .about-logo img {
        max-width: 200px;
    }
    .section-title-left {
        font-size: 34px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 36px 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        padding: 40px 0 60px 0;
    }

    .hero-logo {
        width: 150px;
        height: 150px;
        margin-bottom: 25px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }

    .services-grid,
    .portfolio-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .contact-instagram {
        padding: 36px 20px;
    }

    .ig-main-text {
        font-size: 18px;
    }

    .float-ig-label {
        display: none;
    }

    .float-ig {
        padding: 14px;
        border-radius: 50%;
    }

    .modal-body {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-title {
        font-size: 20px;
    }
}

  /* Responsive del modal rebranding */
    .rebranding-modal-box {
        border-radius: 16px;
        max-height: 85vh;
    }
 
    .rebranding-modal-header {
        padding: 36px 24px 24px;
    }
 
    .rebranding-modal-logo {
        width: 90px;
        margin-bottom: 20px;
    }
 
    .rebranding-modal-header h2 {
        font-size: 26px;
    }
 
    .rebranding-modal-subtitle {
        font-size: 15px;
    }
 
    .rebranding-modal-body {
        padding: 28px 24px;
    }
 
    .rebranding-modal-section h3 {
        font-size: 20px;
    }
 
    .rebranding-modal-list li {
        font-size: 14px;
    }
 
    .rebranding-modal-cta {
        padding: 32px 24px;
    }
 
    .rebranding-modal-ready {
        font-size: 18px;
    }
 
    .rebranding-modal-btn {
        width: 100%;
        justify-content: center;
    }
