/* ============================================
   INTECPRO LLC - Corporate Website Styles
   Version: 2.0 - Multilingual with Global Presence
   ============================================ */

/* ============================================
   1. RESET & BASE STYLES
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   2. HEADER & NAVIGATION
   ============================================ */
.main-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    display: inline-block;
    padding: 0;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:hover {
    color: #2563eb;
    text-decoration: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ============================================
   3. LANGUAGE SWITCHER (WITH FLAG IMAGES)
   ============================================ */
.lang-switcher {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    background: #f1f5f9;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
    user-select: none;
}

.lang-current:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.lang-flag-img {
    width: 24px;
    height: auto;
    border-radius: 3px;
    object-fit: cover;
}

.lang-code {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 700;
}

.lang-arrow {
    font-size: 0.7rem;
    color: #64748b;
    transition: transform 0.2s;
}

.lang-switcher:hover .lang-arrow,
.lang-switcher.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-options {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    overflow: hidden;
    z-index: 1000;
}

.lang-switcher.active .lang-options {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    color: #334155;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: linear-gradient(90deg, #eff6ff 0%, #fff 100%);
    padding-left: 1.5rem;
    text-decoration: none;
    color: #1e40af;
}

.lang-flag-img-small {
    width: 28px;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.lang-option .lang-name {
    flex: 1;
    font-weight: 500;
}

.lang-option .lang-code {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
}

.lang-option:hover .lang-code {
    background: #1e40af;
    color: #fff;
}

/* ============================================
   4. MOBILE MENU TOGGLE
   ============================================ */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 0.5rem;
}

/* ============================================
   5. HERO SECTION
   ============================================ */
.hero {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ============================================
   6. BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: #fff;
    color: #1e3a8a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #f1f5f9;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    border: 2px solid #2563eb;
    color: #2563eb;
    background: transparent;
}

.btn-outline:hover {
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ============================================
   7. SECTIONS GENERAL
   ============================================ */
.section {
    padding: 5rem 0;
}

.section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 700;
}

.section .intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.8;
}

.bg-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.bg-dark {
    background: #111827;
    color: #fff;
}

.text-white {
    color: #fff;
}

.text-center {
    text-align: center;
}

/* ============================================
   8. SERVICES SECTION (UPDATED)
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.service-card {
    padding: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.service-card h3 {
    margin-bottom: 0.8rem;
    color: #111827;
    font-size: 1.3rem;
    font-weight: 600;
}

.service-card p {
    color: #64748b;
    line-height: 1.7;
}

/* ========== EQUIPMENT SHOWCASE (NEW) ========== */
.equipment-showcase {
    grid-column: 1 / -1;
    /* Ocupa todo el ancho */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-top: 1rem;
}

.equipment-image-left,
.equipment-image-right {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    background: #f8fafc;
}

.equipment-image-left:hover,
.equipment-image-right:hover {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2);
}

.equipment-image-left img,
.equipment-image-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 450px;
}

.equipment-card {
    min-width: 350px;
    max-width: 450px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.equipment-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 700;
}

.equipment-card>p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Equipment List - Compact */
.equipment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3rem;
}

.equipment-list li {
    padding: 0.6rem 0;
    color: #475569;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.equipment-list li:last-child {
    border-bottom: none;
}

.equipment-list li::before {
    margin-right: 0.6rem;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ========== RESPONSIVE ========== */

/* Tablet: 2 columnas arriba */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .equipment-showcase {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }

    .equipment-image-left {
        grid-row: 1;
        grid-column: 1;
    }

    .equipment-card {
        grid-row: 2;
        grid-column: 1 / -1;
        max-width: 100%;
        min-width: auto;
    }

    .equipment-image-right {
        grid-row: 1;
        grid-column: 2;
    }
}

/* Móvil: 1 columna - todo apilado */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .equipment-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .equipment-image-left,
    .equipment-image-right {
        min-height: 250px;
    }

    .equipment-image-left img,
    .equipment-image-right img {
        min-height: 250px;
    }

    .equipment-card {
        min-width: auto;
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .equipment-list {
        grid-template-columns: 1fr;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {

    .equipment-image-left,
    .equipment-image-right {
        min-height: 200px;
    }

    .equipment-image-left img,
    .equipment-image-right img {
        min-height: 200px;
    }

    .equipment-card h3 {
        font-size: 1.3rem;
    }

    .equipment-list li {
        font-size: 0.85rem;
    }
}

/* ============================================
   9. DELIVERY SECTION
   ============================================ */
.delivery-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.delivery-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: #475569;
    line-height: 1.7;
}

.delivery-list li:last-child {
    border-bottom: none;
}

.delivery-list li strong {
    color: #1e293b;
    font-weight: 600;
}

/* ============================================
   10. PRICING SECTION
   ============================================ */
.pricing-range {
    font-size: 1.1rem;
    margin: 1.5rem 0 2rem;
    color: #64748b;
    font-weight: 500;
}

/* ============================================
   11. LOCATIONS SECTION (GLOBAL PRESENCE)
   ============================================ */
.locations-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.locations-section h2 {
    color: #1e3a8a;
}

.locations-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 3.5rem;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.location-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.location-flag-img {
    width: 120px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.location-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: #1e293b;
    font-weight: 700;
}

.location-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.location-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ============================================
   12. TRUST BADGES SECTION
   ============================================ */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.trust-item {
    text-align: center;
    padding: 1.5rem;
}

.trust-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.trust-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #fff;
    font-weight: 600;
}

.trust-item p {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   13. CONTACT SECTION
   ============================================ */
.contact-info {
    margin: 2.5rem 0;
    font-size: 1.15rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
}

.contact-info a {
    color: #2563eb;
    font-weight: 600;
    font-size: 1.2rem;
}

.contact-info a:hover {
    color: #1d4ed8;
}

.contact-note {
    color: #64748b;
    font-style: italic;
    font-size: 1rem;
    margin-top: 1.5rem;
}

/* ============================================
   14. FOOTER
   ============================================ */
.main-footer {
    background: #111827;
    color: #9ca3af;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand strong {
    color: #fff;
    font-size: 1.4rem;
    display: block;
    margin-bottom: 0.8rem;
}

.footer-brand p {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.footer-brand a {
    color: #60a5fa;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-legal a {
    color: #9ca3af;
    font-size: 0.95rem;
}

.footer-legal a:hover {
    color: #fff;
    text-decoration: none;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    font-size: 0.9rem;
    color: #6b7280;
}

/* ============================================
   15. LEGAL PAGES (Terms, Refund, Privacy)
   ============================================ */
.legal-page {
    padding: 4rem 0;
    background: #f8fafc;
    min-height: 60vh;
}

.legal-page .breadcrumb {
    margin-bottom: 2.5rem;
}

.legal-page .breadcrumb a {
    color: #64748b;
    font-size: 0.95rem;
}

.legal-page .breadcrumb a:hover {
    color: #2563eb;
}

.legal-page h1 {
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-weight: 700;
}

.legal-page .last-updated {
    color: #64748b;
    margin-bottom: 3rem;
    font-size: 0.95rem;
    font-style: italic;
}

.legal-page section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.legal-page section:last-child {
    border-bottom: none;
}

.legal-page h2 {
    font-size: 1.4rem;
    margin: 0 0 1rem;
    color: #1e293b;
    font-weight: 600;
    text-align: left;
}

.legal-page p,
.legal-page ul,
.legal-page ol {
    color: #475569;
    line-height: 1.8;
    font-size: 1rem;
}

.legal-page ul,
.legal-page ol {
    padding-left: 1.8rem;
    margin: 1rem 0;
}

.legal-page li {
    margin-bottom: 0.6rem;
}

.legal-page a {
    color: #2563eb;
    font-weight: 500;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* ============================================
   16. RESPONSIVE / MOBILE STYLES
   ============================================ */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .section h2 {
        font-size: 1.9rem;
    }

    .locations-grid,
    .services-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {

    /* Header */
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 1rem 0;
        gap: 1rem;
    }

    .main-nav.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .header-flex {
        flex-wrap: wrap;
    }

    /* Logo */
    .logo-img {
        height: 45px;
    }

    /* Language Switcher */
    .lang-switcher {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }

    .lang-options {
        right: 0;
        left: 0;
        min-width: auto;
    }

    .lang-flag-img {
        width: 20px;
    }

    .lang-flag-img-small {
        width: 24px;
    }

    /* Hero */
    .hero {
        padding: 3.5rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Sections */
    .section {
        padding: 3.5rem 0;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    /* Services & Locations */
    .services-grid,
    .locations-grid,
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .location-flag-img {
        width: 100px;
        height: 65px;
    }

    .location-card {
        padding: 2rem 1.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-legal {
        align-items: center;
    }

    /* Legal Pages */
    .legal-page {
        padding: 2.5rem 0;
    }

    .legal-page h1 {
        font-size: 1.8rem;
    }

    .legal-page section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .logo-img {
        height: 40px;
    }

    .trust-icon {
        font-size: 2.5rem;
    }

    .location-flag-img {
        width: 80px;
        height: 55px;
    }
}

/* ============================================
   17. UTILITY CLASSES
   ============================================ */
.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   18. ANIMATIONS & TRANSITIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ============================================
   19. SOCIAL MEDIA LINKS
   ============================================ */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-links-large {
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.social-link:hover {
    transform: translateY(-3px);
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Facebook */
.social-link[href*="facebook.com"]:hover {
    background: linear-gradient(135deg, #1877f2 0%, #0d5fbf 100%);
    color: #fff;
}

/* LinkedIn */
.social-link[href*="linkedin.com"]:hover {
    background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
    color: #fff;
}

/* YouTube */
.social-link[href*="youtube.com"]:hover {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #fff;
}

/* Social in Footer */
.footer-brand .social-links {
    justify-content: flex-start;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
}

/* Social in Contact Section */
.contact-social {
    margin-top: 2rem;
}

.contact-social p {
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 1rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .social-links {
        gap: 0.8rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .footer-brand .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .social-link {
        width: 38px;
        height: 38px;
    }

    .social-links-large {
        gap: 1rem;
    }
}

/* ============================================
   20. NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 5rem 0;
    color: #fff;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.newsletter-text h2 {
    color: #fff;
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.newsletter-text>p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.7;
}

.newsletter-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.newsletter-benefits li {
    padding: 0.6rem 0;
    font-size: 1.05rem;
    opacity: 0.95;
}

.newsletter-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group label .optional {
    font-weight: 400;
    color: #64748b;
    font-size: 0.85rem;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.3rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-group label a {
    color: #2563eb;
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
}

.newsletter-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* Mobile adjustments */
@media (max-width: 968px) {
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .newsletter-text h2 {
        text-align: center;
    }

    .newsletter-text>p {
        text-align: center;
    }

    .newsletter-benefits {
        max-width: 500px;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 3.5rem 0;
    }

    .newsletter-form {
        padding: 2rem 1.5rem;
    }

    .newsletter-text h2 {
        font-size: 1.6rem;
    }
}

/* ============================================
   21. PORTAL BUTTON IN HEADER (UPDATED)
   ============================================ */
.btn-portal {
    display: inline-block;
    padding: 0.8rem 2rem;
    /* ← Más espacio lateral */
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    white-space: nowrap;
    min-width: 180px;
    /* ← ANCHO MÍNIMO GARANTIZADO */
    text-align: center;
    /* ← Centrar texto dentro del botón */
}

.btn-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
    color: #fff !important;
}

/* Mobile */
@media (max-width: 768px) {
    .btn-portal {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        min-width: 160px;
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   22. PORTAL UNDER CONSTRUCTION PAGE
   ============================================ */
.portal-page {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.portal-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.portal-icon {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.portal-page h1 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.portal-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.portal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-item {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

.portal-notify {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.portal-notify h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.portal-notify p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.portal-back {
    margin-top: 2rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .portal-page {
        padding: 3rem 0;
    }

    .portal-icon {
        font-size: 4rem;
    }

    .portal-page h1 {
        font-size: 1.8rem;
    }

    .portal-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .portal-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 1.5rem 1rem;
    }

    .portal-notify {
        padding: 1.5rem;
    }
}

/* ============================================
   23. MOBILE NAV & LOGO FALLBACK (FASE 3)
   ============================================ */

/* Mobile nav — usa clase nav-open en lugar de inline style */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        padding: 1rem 1.5rem;
        gap: 0;
        z-index: 99;
    }

    .main-nav.nav-open {
        display: flex;
    }

    .main-nav a {
        padding: 0.9rem 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 1rem;
    }

    .main-nav a:last-child {
        border-bottom: none;
        margin-top: 0.5rem;
    }

    .main-header {
        position: relative;
    }

    .mobile-toggle {
        display: block;
        font-size: 1.4rem;
        transition: all 0.2s;
    }

    .btn-portal {
        width: 100%;
        text-align: center;
    }
}

/* Logo texto fallback (si logo.jpg no carga) */
.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: -0.5px;
}

/* ============================================
   END OF STYLESHEET
   ============================================ */