/* ==========================================================================
   Home Page & Space Cards (1600px Max-Width, 100% Touch Responsive)
   Fiel a la sección space-types-section de mundosostenible.es
   ========================================================================== */

/* Sección de tipos de espacio con ancho completo y fondo degradado oscuro */
.space-types-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(160deg, #1a1a1a 0%, #2c2c2c 60%, #1f1f1f 100%);
    padding: 80px 20px 90px 20px;
    margin-top: -30px; /* Neutraliza el padding superior del main-wrapper */
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Efectos radiales decorativos idénticos al original */
.space-types-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -150px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(195, 214, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.space-types-section::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(195, 214, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.space-types-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Header de la sección */
.space-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.space-section-badge {
    display: inline-block;
    background: rgba(195, 214, 0, 0.15);
    color: #c3d600;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.35rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(195, 214, 0, 0.3);
    margin-bottom: 1.2rem;
}

.space-section-title {
    color: #ffffff !important;
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.title-highlight {
    color: #c3d600;
    position: relative;
    display: inline-block;
}

.space-section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Grid de tarjetas de espacio */
.space-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .space-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .space-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* Estilo de la tarjeta de espacio */
.space-card {
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
}

.space-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Acentos de color según tipo */
.space-card--coworking  { --card-accent: #c3d600; }
.space-card--office     { --card-accent: #5bc8f5; }
.space-card--storage    { --card-accent: #f5a623; }
.space-card--virtual    { --card-accent: #b388ff; }
.space-card--container  { --card-accent: #2dd4bf; }


/* Borde superior con acento luminoso */
.space-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent);
    border-radius: 16px 16px 0 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.space-card:hover::before {
    opacity: 1;
}

/* Resplandor diagonal al hover */
.space-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    border-radius: 16px;
    z-index: 2;
}

.space-card:hover::after {
    opacity: 1;
}

.space-card-inner {
    padding: 2rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 2;
}

/* Watermark SVG de fondo */
.space-card-bg-icon {
    position: absolute;
    bottom: -10px;
    right: -15px;
    width: 160px;
    height: 160px;
    color: var(--card-accent);
    opacity: 0.06;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 1;
}

.space-card:hover .space-card-bg-icon {
    opacity: 0.12;
    transform: scale(1.08) rotate(-5deg);
}

.space-card-bg-icon svg {
    width: 100%;
    height: 100%;
}

/* Fila superior: icono + pill */
.space-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.space-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.space-card:hover .space-icon-wrap {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: var(--card-accent);
}

.space-icon-wrap svg {
    width: 30px;
    height: 30px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.space-card:hover .space-icon-wrap svg {
    color: var(--card-accent);
}

/* Pastilla de disponibilidad */
.space-avail-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.space-avail-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25);
    flex-shrink: 0;
    animation: pulse-dot 2s ease infinite;
}

.space-avail-pill--always {
    background: rgba(195, 214, 0, 0.12);
    border-color: rgba(195, 214, 0, 0.3);
    color: #c3d600;
}

.space-avail-pill--always .space-avail-dot {
    background: #c3d600;
    box-shadow: 0 0 0 2px rgba(195, 214, 0, 0.25);
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.25); }
    50%       { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.0); }
}

/* Título de tarjeta */
.space-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

/* Descripción */
.space-card-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.65;
    margin-bottom: 1.3rem;
}

/* Lista de ventajas */
.space-card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0 0 1.75rem 0;
    padding: 0;
    flex-grow: 1;
}

.space-card-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

.scf-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--card-accent);
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* Botón táctil dentro de la tarjeta */
.space-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    min-height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    text-align: center;
    text-decoration: none;
    margin-top: auto;
    cursor: pointer;
    box-shadow: none;
}

.space-card-btn:hover,
.space-card-btn:active {
    background: var(--card-accent);
    border-color: var(--card-accent);
    color: #1a1a1a;
    transform: none;
    box-shadow: none;
}

.space-card-btn span {
    transition: transform 0.2s ease;
}

.space-card-btn:hover span {
    transform: translateX(4px);
}

/* ==========================================================================
   SECCIÓN: Únete a Mundo Sostenible (container-join)
   ========================================================================== */
.join-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #ffffff;
    padding: 80px 20px;
    margin-top: 60px;
    margin-bottom: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.join-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 450px;
    height: 450px;
    background-color: #c3d600;
    opacity: 0.08;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.container-join {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .container-join {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 60px;
    }
}

.join-content {
    display: flex;
    flex-direction: column;
}

.join-badge-wrap {
    margin-bottom: 16px;
}

.join-badge {
    display: inline-block;
    background-color: rgba(195, 214, 0, 0.18);
    color: #4d5400;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 18px;
    border-radius: 50px;
}

.join-main-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1f2937;
}

.join-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 16px;
}

.join-lead strong {
    color: #111827;
}

.join-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 28px;
}

.join-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    padding: 0;
}

.join-features-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(195, 214, 0, 0.18);
    color: #657500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.join-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #c3d600;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 28px;
    border-radius: 50px;
    min-height: 52px;
    box-shadow: 0 4px 14px rgba(195, 214, 0, 0.4);
    transition: var(--transition);
}

.join-btn:hover {
    background-color: #b5c700;
    color: #000000;
    transform: none;
    box-shadow: none;
}

.join-btn svg {
    width: 20px;
    height: 20px;
}

.join-locations {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.location-box {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.location-box-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    background-color: #ffffff;
}

.location-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #f1f5f9;
    color: #1f2937;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.location-box:hover .location-box-icon {
    background-color: #c3d600;
    color: #1a1a1a;
}

.location-box-icon svg {
    width: 24px;
    height: 24px;
}

.location-box-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 3px;
}

.location-box-address {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
}

.location-map {
    width: 100%;
    height: 230px;
    background-color: #f1f5f9;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==========================================================================
   SECCIÓN: Empresas socias (partners-section) - Carrusel Infinito
   ========================================================================== */
.partners-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #f8fafc;
    padding: 70px 20px 80px 20px;
    overflow: hidden;
    box-sizing: border-box;
}

.partners-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.partners-section .section-title {
    text-align: center;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #1f2937;
    line-height: 1.25;
    margin-bottom: 12px;
}

.partners-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 1.05rem;
    margin-bottom: 36px;
}

.partners-marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.partners-marquee-wrapper:hover .partners-marquee-track {
    animation-play-state: paused;
}

.partners-marquee-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll-marquee 40s linear infinite;
    min-width: 100%;
    flex-shrink: 0;
}

@keyframes scroll-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 1.5rem)); }
}

.partner-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    width: 250px;
    flex-shrink: 0;
    cursor: pointer;
    white-space: normal;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.partner-card:hover {
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
    border-color: #c3d600;
}

.partner-text-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-direction: column;
    text-align: center;
    line-height: 1.2;
}

.ptl-badge {
    background: #0f172a;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.ptl-circle-icon {
    font-size: 1.6rem;
    color: #0284c7;
    line-height: 1;
}

.ptl-circle-badge {
    background: #f97316;
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
}

.ptl-chat-icon {
    background: #c3d600;
    color: #1a1a1a;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.ptl-name--bold {
    font-weight: 900;
    font-size: 1.05rem;
    color: #111827;
}

.ptl-name--thin {
    font-weight: 300;
    color: #64748b;
}

.ptl-name--script {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0d9488;
}

.ptl-name--marsan {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0369a1;
}

.ptl-name--green {
    font-size: 0.95rem;
    font-weight: 800;
    color: #15803d;
}

.ptl-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.ptl-info strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.25;
}

.ptl-info small, .ptl-tagline {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.25;
    margin-top: 4px;
}

.ptl-leaf, .ptl-bulb {
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 2px;
}

/* ==========================================================================
   SECCIÓN: Testimonios (testimonials-section) - Slider Táctil
   ========================================================================== */
.testimonials-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #ffffff;
    padding: 80px 20px 100px 20px;
    box-sizing: border-box;
}

.testimonials-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.testimonials-section .section-title {
    text-align: center;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 40px;
}

.testimonials-marquee-wrapper {
    overflow: hidden;
    position: relative;
    display: flex;
    gap: 24px;
    padding: 15px 0 35px 0;
    width: 100%;
    box-sizing: border-box;
}

.testimonials-marquee-wrapper:hover .testimonials-marquee-track {
    animation-play-state: paused;
}

.testimonials-marquee-track {
    display: flex;
    gap: 24px;
    animation: scroll-testimonials 35s linear infinite;
    min-width: 100%;
    flex-shrink: 0;
}

@keyframes scroll-testimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 24px));
    }
}

.testimonial-card {
    flex: 0 0 calc(100vw - 40px);
    max-width: 380px;
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    border-top: 4px solid #c3d600;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc((100vw - 72px) / 2);
        max-width: 420px;
    }
}

@media (min-width: 1200px) {
    .testimonial-card {
        /* En desktop se ven las 4 tarjetas simultáneamente dentro de los 1600px */
        flex: 0 0 calc((1600px - 30px - 72px) / 4);
        max-width: none;
    }
}

.quote-watermark {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 110px;
    height: 110px;
    fill: #c3d600;
    opacity: 0.1;
    transform: rotate(-10deg);
    pointer-events: none;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.25rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.testimonial-quote {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-quote p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background-color: #c3d600;
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.78rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    font-weight: 600;
}



