/* ===== VARIABLES ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --gray: #94a3b8;
    --border: #e2e8f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER Y NAVBAR ===== */
header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(37,99,235,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--border);
    margin-left: 15px;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.1rem;
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary);
    line-height: 1.6;
}

/* ===== SERVICES ===== */
.services-section {
    background: var(--light);
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(37,99,235,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-btn {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.service-btn:hover {
    gap: 10px;
}

/* ===== BENEFITS ===== */
.benefits-section {
    background: var(--white);
}

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

.benefit-item {
    text-align: center;
    padding: 30px;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: rgba(37,99,235,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}

.benefit-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.benefit-item p {
    color: var(--secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== PROCESS ===== */
.process-section {
    background: var(--light);
}

.process-grid {
    max-width: 800px;
    margin: 0 auto;
}

.process-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.process-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.process-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.process-content p {
    color: var(--secondary);
    line-height: 1.6;
}

/* ===== CASES ===== */
.cases-section {
    background: var(--white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.case-result {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.case-result i {
    font-size: 1.1rem;
}

.case-content p {
    color: var(--secondary);
    line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    background: var(--light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 25px;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info strong {
    display: block;
    color: var(--dark);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.author-info span {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--light);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--gray);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
        text-align: center;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .process-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .process-number {
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
        text-align: center;
        justify-content: center;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== SERVICE DETAIL ===== */
.service-detail {
    padding: 80px 0;
}

.service-detail.bg-light {
    background: #f8fafc;
}

.service-detail-grid {
    max-width: 800px;
    margin: 0 auto;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(37,99,235,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.service-icon-large i {
    font-size: 2.5rem;
    color: #2563eb;
}

.service-detail-content h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 20px;
}

.service-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 30px;
}

.service-detail-content h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin: 30px 0 15px;
}

.service-list {
    list-style: none;
    margin-bottom: 30px;
}

.service-list li {
    margin-bottom: 12px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list i {
    color: #2563eb;
    font-size: 1.2rem;
}

/* ===== MISSION VISION ===== */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mission-card, .vision-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.mission-card i, .vision-card i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 20px;
}

.mission-card h3, .vision-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1e293b;
}

/* ===== VALUES ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.value-item {
    text-align: center;
    padding: 30px;
}

.value-item i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 20px;
}

.value-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.value-item p {
    color: #64748b;
}

/* ===== TEAM ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #2563eb;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #1e293b;
}

.team-member .position {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 15px;
}

/* ===== CONTACT ===== */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.contact-form h2 {
    margin-bottom: 30px;
    color: #1e293b;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #1e293b;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.contact-info h2 {
    margin-bottom: 30px;
    color: #1e293b;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: #2563eb;
    margin-top: 5px;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #1e293b;
}

.info-item p {
    color: #64748b;
}

.success-message {
    background: #10b981;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.success-message.show {
    display: block;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.legal-content h2 {
    color: #1e293b;
    margin: 30px 0 15px;
}

.legal-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 20px;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 20px;
    color: #4b5563;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .service-detail-content h2 {
        font-size: 2rem;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ===== LEGAL PAGES ===== */
.legal-section {
    padding: 60px 0;
    background: #ffffff;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.legal-content h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin: 40px 0 20px;
    font-weight: 600;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin: 30px 0 15px;
    font-weight: 500;
}

.legal-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 20px;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
    color: #4b5563;
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-content li strong {
    color: #1e293b;
}

.legal-info-box {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 4px solid #2563eb;
}

.legal-info-box p {
    margin-bottom: 0;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cookies-table thead {
    background: #2563eb;
    color: white;
}

.cookies-table th {
    padding: 15px;
    text-align: left;
    font-weight: 500;
}

.cookies-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    background: white;
}

.cookies-table tr:last-child td {
    border-bottom: none;
}

.browser-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.browser-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.browser-item i {
    font-size: 2rem;
    color: #2563eb;
}

.legal-update {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    text-align: right;
    color: #64748b;
    font-style: italic;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 30px 20px;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .cookies-table {
        display: block;
        overflow-x: auto;
    }
    
    .browser-links {
        grid-template-columns: 1fr;
    }
    
    .browser-item {
        padding: 15px;
    }
}

/* ===== FOOTER MEJORADO ===== */
footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 20px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #2563eb;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-section .contact-info li {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section .contact-info li i {
    color: #2563eb;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: white;
}

.social-links a:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section .contact-info li {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ===== DEMO BANNER ===== */
.demo-banner {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}

.demo-banner i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.demo-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #f59e0b;
    font-style: italic;
}

@media (max-width: 768px) {
    .demo-banner {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* ===== PAGE HERO ===== */
.page-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 120px 0 80px;
    margin-top: 70px;
    text-align: center;
    color: white;
}

.page-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-hero-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== SERVICIOS MODERN ===== */
.services-grid-section {
    padding: 80px 0;
    background: #f8fafc;
}

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

.service-card-modern {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37,99,235,0.1);
    border-color: #2563eb;
}

.service-icon-modern {
    width: 70px;
    height: 70px;
    background: rgba(37,99,235,0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon-modern i {
    font-size: 2rem;
    color: #2563eb;
}

.service-card-modern h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.service-card-modern p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-card-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 12px;
}

.btn-service {
    background: #2563eb;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
}

.btn-service:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* ===== SERVICE DETAILS ===== */
.services-detail-section {
    padding: 80px 0;
}

.services-detail-section.bg-light {
    background: #f8fafc;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-detail-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.detail-header i {
    font-size: 1.8rem;
    color: #2563eb;
}

.detail-header h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin: 0;
}

.detail-list {
    list-style: none;
    padding: 0;
}

.detail-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #475569;
}

.detail-list li i {
    color: #2563eb;
    font-size: 0.9rem;
}

.detail-text {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 25px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* ===== ABOUT PAGE ===== */
.about-story {
    padding: 80px 0;
}

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

.section-title-left {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.section-title-left:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #2563eb;
}

.story-text {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.story-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.2;
}

.stat-label {
    color: #64748b;
    font-size: 0.95rem;
}

.story-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ===== MISSION VISION MODERN ===== */
.mission-vision-section {
    padding: 60px 0;
    background: #f8fafc;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mission-card-modern, .vision-card-modern {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.mission-card-modern:hover, .vision-card-modern:hover {
    transform: translateY(-5px);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: rgba(37,99,235,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.mission-icon i {
    font-size: 2rem;
    color: #2563eb;
}

.mission-card-modern h3, .vision-card-modern h3 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 20px;
}

.mission-card-modern p, .vision-card-modern p {
    color: #475569;
    line-height: 1.7;
}

/* ===== VALUES MODERN ===== */
.values-section-modern {
    padding: 80px 0;
}

.values-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.value-card-modern {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.value-card-modern:hover {
    border-color: #2563eb;
    transform: translateY(-5px);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: rgba(37,99,235,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon i {
    font-size: 1.8rem;
    color: #2563eb;
}

.value-card-modern h4 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 12px;
}

.value-card-modern p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== TEAM MODERN ===== */
.team-section-modern {
    padding: 80px 0;
    background: #f8fafc;
}

.team-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.team-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.team-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37,99,235,0.1);
}

.team-image {
    height: 250px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-card-modern:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 25px 20px;
}

.team-info h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 5px;
}

.team-position {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 12px;
}

.team-bio {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== CONTACT MODERN ===== */
.contact-section-modern {
    padding: 60px 0;
}

.contact-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form-modern {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.contact-form-modern h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 30px;
}

.form-row {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-weight: 500;
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

/* Contact Info Modern */
.contact-info-modern {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.contact-info-modern h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 30px;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s;
}

.info-card:hover {
    background: #eef2f6;
    transform: translateX(5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(37,99,235,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    font-size: 1.5rem;
    color: #2563eb;
}

.info-content h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 5px;
}

.info-content p,
.info-content a {
    color: #64748b;
    text-decoration: none;
}

.info-content a:hover {
    color: #2563eb;
}

.contact-social h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.social-links-contact {
    display: flex;
    gap: 15px;
}

.social-links-contact a {
    width: 45px;
    height: 45px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.social-links-contact a:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-3px);
}

/* Map Section */
.map-section {
    padding: 0 0 60px;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .service-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .team-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .contact-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .contact-form-modern,
    .contact-info-modern {
        padding: 30px 20px;
    }
    
    .story-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== TEAM IMAGES FIX ===== */
.team-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s;
}

/* Ajustes específicos para cada imagen */
.team-card-modern:nth-child(1) .team-image img {
    object-position: center 20%; /* Ajuste para Eduardo */
}

.team-card-modern:nth-child(2) .team-image img {
    object-position: center 30%; /* Ajuste para Laura */
}

.team-card-modern:nth-child(3) .team-image img {
    object-position: center 25%; /* Ajuste para Carlos */
}

.team-card-modern:nth-child(4) .team-image img {
    object-position: center 20%; /* Ajuste para Ana */
}

/* Para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .team-image {
        height: 260px;
    }
}

/* Para móviles */
@media (max-width: 768px) {
    .team-image {
        height: 300px;
    }
    
    .team-card-modern {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .team-image img {
        object-position: center 25%;
    }
}

/* Para móviles pequeños */
@media (max-width: 480px) {
    .team-image {
        height: 280px;
    }
}

/* ===== TEAM CARDS EN MÓVIL ===== */
@media (max-width: 768px) {
    .team-grid-modern {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    
    .team-card-modern {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .team-info {
        padding: 20px 15px;
    }
    
    .team-info h3 {
        font-size: 1.2rem;
    }
    
    .team-position {
        font-size: 0.95rem;
    }
    
    .team-bio {
        font-size: 0.9rem;
    }
}
