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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.15);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: flex-start;
    /* antes: space-between */
    align-items: center;
    gap: 5rem;
    /* espacio pequeño entre logo y links */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

/* Fallback text logo styling */
.logo-text {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
}

.nav-links {
    display: flex;
    /*flex: horizontal*/
    list-style: none;
    /*none: sin puntos*/
    gap: 1rem;
    /*gap entre links*/
    margin-left: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
}


/* CSS para el Language Switcher */
.language-switcher {
    display: inline-flex;
    align-items: center;
    background-color: #1e3a8a;
    /* Azul similar a la imagen */
    border-radius: 25px;
    padding: 6px 12px;
    font-family: Arial, sans-serif;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.globe-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: white;
    flex-shrink: 0;
}

.language-options {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 400;
    padding: 4px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.separator {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0 2px;
}

/* Estilo opcional para posicionar en la esquina */
.switcher-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Ejemplo de uso - caja de texto para demostrar */
.demo-content {
    margin: 80px 20px 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

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

.hero .subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    margin: 3rem 0;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #3b82f6;
    transform: translateY(-2px);
}

/* Stats Section */
.stats {
    background: #f8fafc;
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(148, 163, 184, 0.15);
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1e40af;
}

.about-text p {
    text-align: justify;
    text-justify: inter-word;
    /* mejor separación entre palabras */
    hyphens: auto;
    /* permite guionado automático si procede */
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #475569;
    line-height: 1.8;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(148, 163, 184, 0.3);
}

/* Features Section */
.features {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 5rem 0;
    color: #1e40af;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e40af;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid #3b82f6;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e40af;
}

.feature-card p {
    line-height: 1.6;
    color: #475569;
}

/* Target Centers Section */
.target-centers {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.target-centers::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"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(59,130,246,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.target-content {
    position: relative;
    z-index: 2;
}

.target-text {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.target-text h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #1e40af;
    font-weight: 700;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.target-text p {
    font-size: 1.3rem;
    color: #475569;
    line-height: 1.8;
    font-weight: 400;
}

.centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.center-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.center-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.center-item:hover::before {
    left: 100%;
}

.center-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 1);
}

.center-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid #3b82f6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.center-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.center-item:hover .center-icon {
    color: white;
    border-color: #1e40af;
    transform: scale(1.1) rotate(5deg);
}

.center-item:hover .center-icon::after {
    width: 120%;
    height: 120%;
}

.center-item span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e40af;
    display: block;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.center-item:hover span {
    color: #1e3a8a;
}

/* Add subtle animation on load */
.center-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.center-item:nth-child(1) {
    animation-delay: 0.1s;
}

.center-item:nth-child(2) {
    animation-delay: 0.2s;
}

.center-item:nth-child(3) {
    animation-delay: 0.3s;
}

.center-item:nth-child(4) {
    animation-delay: 0.4s;
}

.center-item:nth-child(5) {
    animation-delay: 0.5s;
}

.center-item:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional enhancement: Pulse effect for icons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.center-item:hover .center-icon {
    animation: pulse 2s infinite;
}

/* Innovation Section */
.innovation {
    padding: 5rem 0;
    background: #f1f5f9;
}

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

.innovation h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1e40af;
}

.patent-highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
}

.patent-highlight h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.patent-highlight p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.innovation-content>p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.contact__content,
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact__form,
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact__info,
.contact-info {
    padding: 2rem;
}

.contact__form-group,
.form-group {
    margin-bottom: 1.5rem;
}

.contact__form label,
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.contact__form input,
.contact__form textarea,
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact__form input:focus,
.contact__form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.contact__form textarea,
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background: #334155;
    color: #cbd5e1;
    padding: 2rem 0;
    text-align: center;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #60a5fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .logo img {
        height: 50px;
        max-width: 180px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

/* Placeholder image styling */
.placeholder-img {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px dashed #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-weight: 600;
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-init {
    opacity: 0;
    transform: translateY(30px);
}

/* Responsive Design */
@media (max-width: 768px) {

    .nav {
        justify-content: space-between;
        /* logo a la izquierda, toggle a la derecha */
    }

    .hero__title,
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero__subtitle,
    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero__cta-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .nav__links,
    .nav-links {
        display: none;
    }

    .about__content,
    .about-content,
    .contact__content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features__grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats__grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .target-centers {
        padding: 3rem 0;
    }

    .target-text h2 {
        font-size: 2.2rem;
    }

    .target-text p {
        font-size: 1.1rem;
    }

    .centers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .center-item {
        padding: 2rem 1.5rem;
    }

    .center-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .center-item span {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

    .stats__grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .target-text {
        margin-bottom: 2.5rem;
    }

    .center-item {
        padding: 1.5rem 1rem;
    }

    .center-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* Contact form styles */
.contact-form {
    max-width: 980px;
    margin: 3.5rem auto;
    padding: 2.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 250, 250, 0.95));
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.06);
    border-radius: 12px;
}

.contact-form__title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: #0f172a;
    font-weight: 700;
}

.contact-form__lead {
    margin: 0 0 1.25rem;
    color: #475569;
    font-size: 0.95rem;
}

/* grid layout */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.25rem;
}

/* groups */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group--full {
    grid-column: 1 / -1;
}

/* labels and inputs */
.form-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.form-input,
.form-textarea {
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: white;
    color: #0f172a;
    outline: none;
    font-size: 1rem;
    transition: box-shadow .15s ease, border-color .15s ease, transform .08s ease;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
}

/* actions */
.form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-start;
}

.form-note {
    margin-left: auto;
    color: #64748b;
    font-size: 0.9rem;
}

/* Buttons reuse existing .btn classes, tweak sizes */
.btn {
    padding: 0.65rem 1rem;
    border-radius: 8px;
}

.btn-primary {
    background: linear-gradient(90deg, #2563eb, #1e40af);
    color: white;
    border: none;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.12);
}

.btn-secondary {
    background: transparent;
    color: #1e293b;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

/* status message */
.form-status {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

/* responsive */
@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-note {
        margin-left: 0;
        display: block;
        margin-top: .5rem;
    }

    .contact-form {
        padding: 1.25rem;
        margin: 2rem 1rem;
    }
}