:root {
    --primary-blue: #227296;
    --secondary-blue: #40ACD3;
    --light-blue: #d6f0f8;
    --gray-dark: #374151;
    --gray-medium: #6b7280;
    --gray-light: #f3f4f6;
    --white: #ffffff;
    --alert-yellow: #fef3c7;
    --alert-yellow-text: #92400e;
    --success-green: #70BC7C;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-dark);
    background-color: var(--white);
}

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

/* Header */
.header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: block;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo img {
    height: 80px;
    width: auto;
    cursor: pointer;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.contact-item i {
    color: #70BC7C;
    font-size: 20px;
}

.contact-item.schedule {
    font-size: 14px;
}

/* Navigation */
.navbar {
    background-color: var(--primary-blue);
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0;
}

.nav-menu li {
    flex: 1;
}

.nav-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 25px;
    color: var(--white);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu a i {
    font-size: 16px;
}

.nav-menu li:last-child a {
    border-right: none;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--secondary-blue);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Alert Bar */
.alert-bar {
    background-color: var(--white);
    padding: 20px 0;
}

.alert-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    border: 3px solid var(--primary-blue);
    border-radius: 15px;
    padding: 20px 30px;
}

.alert-icon-left,
.alert-icon-right {
    font-size: 66px;
    flex-shrink: 0;
    color: #FDD42B;
    -webkit-text-stroke: 3px #000000;
}

.alert-text {
    flex: 1;
    text-align: center;
}

.alert-main {
    color: #003366;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.alert-sub {
    color: #003366;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23227296" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 114, 150, 0.8);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero-text {
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-image {
    max-width: 500px;
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--success-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #5ba869;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 188, 124, 0.4);
}

.btn-large {
    padding: 18px 45px;
    font-size: 22px;
}

.btn i {
    margin-right: 8px;
}

/* Pension Entities Section */
.pension-entities {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.pension-entities h2 {
    text-align: center;
    font-size: 38px;
    color: var(--primary-blue);
    margin-bottom: 50px;
    font-weight: 600;
}

.entities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.entity-logo {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entity-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.entity-logo img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
}

.cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background-color: var(--white);
}

.benefits h2 {
    text-align: center;
    font-size: 42px;
    color: var(--primary-blue);
    margin-bottom: 60px;
    font-weight: 700;
}

.benefits-intro {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.benefits-image {
    max-width: 400px;
    width: 100%;
}

.benefits-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-bottom: 30px;
}

.benefit-card {
    background-color: var(--light-blue);
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(64, 172, 211, 0.2);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--secondary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon i {
    font-size: 36px;
    color: var(--white);
}

.benefit-card h3 {
    font-size: 22px;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-weight: 600;
}

.benefit-card p {
    font-size: 17px;
    color: var(--gray-medium);
    line-height: 1.6;
}

.disclaimer {
    text-align: center;
    font-size: 16px;
    color: var(--gray-medium);
    font-style: italic;
    margin-top: 20px;
}

/* Process Section */
.process {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
}

.process h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    font-weight: 700;
}

.process-intro {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.process-image {
    max-width: 400px;
    width: 100%;
}

.process-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.process-step {
    text-align: center;
    padding: 30px;
}

.process-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.process-icon i {
    font-size: 44px;
    color: var(--white);
}

.process-icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.process-step h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.process-step p {
    font-size: 17px;
    line-height: 1.6;
    opacity: 0.95;
}

/* Footer */
.footer {
    background-color: var(--gray-dark);
    color: var(--white);
    padding: 60px 0 100px; /* Aumentado el padding inferior para que no se oculte detrás de la barra sticky */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 25px;
}

.footer h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--secondary-blue);
    font-weight: 600;
}

.footer-contact p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.7;
}

.footer-contact i {
    color: #70BC7C;
    margin-right: 8px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 17px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-blue);
}

.supervision {
    margin-top: 35px;
}

.supervision-text {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    color: #962D46;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.supervision-line {
    display: block;
}

.supervision-logo {
    max-width: 200px;
    height: auto;
    margin-top: 15px;
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-legal p {
    margin-bottom: 10px;
    font-size: 15px;
}

.footer-legal a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--light-blue);
    text-decoration: underline;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex; /* Visible en todas las pantallas */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
    margin: 0;
    line-height: 60px;
}

/* Sticky Bottom Bar */
.sticky-whatsapp-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    padding: 15px 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.sticky-whatsapp-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sticky-whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    padding: 12px 40px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
}

.sticky-whatsapp-link:hover {
    background-color: var(--white);
    color: #25d366;
    transform: scale(1.05);
}

.sticky-whatsapp-link i {
    font-size: 28px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .header {
        padding: 12px 0;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo img {
        height: 60px;
    }
    
    .contact-info {
        display: none; /* Ocultar en móviles */
    }
    
    .navbar {
        padding: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-image {
        max-width: 350px;
    }
    
    .benefits-image,
    .process-image {
        max-width: 300px;
    }
    
    .benefits-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .entities-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .logo img {
        height: 50px;
    }
    
    .contact-info {
        display: none; /* Ocultar en móviles pequeños */
    }
    
    /* Botón flotante más pequeño en pantallas muy pequeñas */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 90px; /* Moverlo arriba para que no tape la barra sticky */
        right: 20px;
        font-size: 28px;
    }
    
    .whatsapp-float i {
        line-height: 55px;
    }
    
    .sticky-whatsapp-bar {
        padding: 12px 0;
    }
    
    .sticky-whatsapp-link {
        font-size: 17px;
        padding: 10px 25px;
        gap: 10px;
    }
    
    .sticky-whatsapp-link i {
        font-size: 24px;
    }
    
    .alert-bar {
        padding: 15px 0;
    }
    
    .alert-content {
        gap: 15px;
        padding: 15px 20px;
        border-radius: 12px;
    }
    
    .alert-icon-left,
    .alert-icon-right {
        font-size: 53px;
    }
    
    .alert-main {
        font-size: 16px;
    }
    
    .alert-sub {
        font-size: 13px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-image {
        max-width: 250px;
    }
    
    .benefits-image,
    .process-image {
        max-width: 250px;
    }
    
    .btn-large {
        padding: 15px 30px;
        font-size: 18px;
    }
    
    .contact-item {
        font-size: 14px;
        flex-direction: column;
        text-align: center;
    }
    
    .benefits h2,
    .process h2 {
        font-size: 32px;
    }
    
    .pension-entities h2 {
        font-size: 28px;
    }
}

/* ============================================
   Accordion Component Styles
   ============================================ */

.accordion-container {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.accordion-header {
    padding: 24px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #f9fafb;
}

.accordion-header.active {
    background: #f0f9ff;
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.accordion-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #227296 0%, #40ACD3 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.accordion-title h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #1f2937;
    font-weight: 600;
}

.accordion-arrow {
    font-size: 1.5rem;
    color: #227296;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content.active {
    max-height: 2000px;
}

.accordion-body {
    padding: 0 30px 30px;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.8;
}

.accordion-body p {
    margin-bottom: 15px;
}

.accordion-body strong {
    color: #227296;
    font-weight: 600;
}

.highlight-box {
    background: #f0f9ff;
    border-left: 4px solid #227296;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.note-text {
    font-size: 0.95rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 20px;
    padding: 15px;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
}

/* Accordion Responsive Styles */
@media (max-width: 768px) {
    .accordion-header {
        padding: 18px 20px;
    }
    
    .accordion-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .accordion-title h3 {
        font-size: 1.1rem;
    }
    
    .accordion-body {
        padding: 0 20px 20px;
        font-size: 1rem;
    }
}
