/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Arial", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 20px;
    gap: 1rem;
}

.logos-section {
    background: #fafafa;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logos-responsive {
    display: none;
}

.logos {
    display: block;
}

.logos-group-1,
.logos-group-2 {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.eu-logo,
.gov-logo,
.redes-logo,
.recovery-logo,
.kit-digital-logo {
    height: 5.5em;
    width: auto;
}

.navbar {
    position: relative;
}

.nav-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    display: block;
}

.nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #0066cc;
}

/* Secciones principales */
main {
    margin-top: 140px;
}

section {
    padding: 4rem 0;
}

.hero {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.lead a {
    color: #c7c9ca;
}
.eu-funding a {
    color: #fff;
    text-decoration: none;
}

.eu-funding {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
    display: inline-block;
}

.eu-funding p {
    font-size: 1rem;
    margin: 0;
}

/* Soluciones */
.solutions {
    background: #f8f9fa;
}

.solutions h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #0066cc;
}

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

.solution-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.solution-card h3 {
    color: #0066cc;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.solution-card p {
    color: #666;
    line-height: 1.6;
}

/* Segmentos */
.segments {
    background: white;
}

.segments h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #0066cc;
}

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

.segment-card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 5px solid #0066cc;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.segment-card h3 {
    color: #0066cc;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.segment-card p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.segment-card ul {
    list-style: none;
    padding-left: 0;
}

.segment-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 20px;
}

.segment-card li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Sectores */
.sectors {
    background: #f8f9fa;
}

.sectors h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #0066cc;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.sector-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #0066cc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.sector-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Contacto */
.contact {
    background: white;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #0066cc;
}

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

.contact-item {
    text-align: center;
    padding: 2rem;
}

.contact-item h3 {
    color: #0066cc;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-form-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    margin-top: 1rem;
}

.contact-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,102,204,0.3);
    color: white;
}

.contact-direct-link {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}

.contact-direct-link:hover {
    color: #004499;
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 1rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info {
    text-align: left;
}

.footer-info p,
.footer-legal p {
    margin-bottom: 0.2rem;
    font-size: 0.7rem;
}

.footer-legal {
    text-align: right;
}

.footer-legal p {
    font-size: 0.7rem;
}

.footer-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 20px;
    background: #f8f9fa;
}

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

.footer-kit-logo {
    height: 5.5em;
    width: auto;
}

/* Contact Form Styles */
.contact-form {
    background: #f8f9fa;
    padding: 6rem 0 4rem 0;
}

.contact-form h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #0066cc;
}

.contact-form h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 300;
}

.form-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

/* Error Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-group.error .checkbox-group,
.form-group.error .radio-group {
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1rem;
    background-color: #fff5f5;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
}

.form-group.error label {
    color: #dc3545;
}

.form-group.error .checkmark,
.form-group.error .radio-mark {
    border-color: #dc3545;
}

/* Success styles for completed valid fields */
.form-group.valid input,
.form-group.valid select,
.form-group.valid textarea {
    border-color: #28a745;
    background-color: #f8fff9;
}

.form-group.valid .checkbox-group,
.form-group.valid .radio-group {
    border-color: #28a745;
    background-color: #f8fff9;
}

.checkbox-group,
.radio-group {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 2rem;
}

.checkbox-item input,
.radio-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkmark,
.radio-mark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.checkmark {
    border-radius: 4px;
}

.radio-mark {
    border-radius: 50%;
}

.checkbox-item:hover .checkmark,
.radio-item:hover .radio-mark {
    border-color: #0066cc;
}

.checkbox-item input:checked ~ .checkmark,
.radio-item input:checked ~ .radio-mark {
    background-color: #0066cc;
    border-color: #0066cc;
}

.checkmark:after,
.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-item input:checked ~ .checkmark:after {
    display: block;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.radio-item input:checked ~ .radio-mark:after {
    display: block;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%);
}

.privacy {
    font-size: 0.9rem;
    color: #666;
}

.submit-btn {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,102,204,0.3);
}

.contact-info-additional {
    max-width: 800px;
    margin: 0 auto;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.info-card h3 {
    color: #0066cc;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-direct {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s;
}

.contact-direct:hover {
    background: #004499;
}

/* Responsive */
@media (max-width: 768px) {
    .logos-responsive {
        display: block;
    }

    .logos {
        display: none;
    }

    .logos-section {
        flex-direction: column;
        gap: 1rem;
    }

    .logos-group-1,
    .logos-group-2 {
        justify-content: center;
        flex-wrap: wrap;
    }

    .eu-logo,
    .gov-logo,
    .redes-logo,
    .recovery-logo,
    .kit-digital-logo {
        height: 4em;
    }

    .footer-kit-logo {
        height: 4em;
    }
    .kit-digital-logo-responsive {
        height: 8em;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        width: 150px;
        flex-direction: column;
        gap: 0;
        text-align: center;
        padding: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        margin: 0.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .nav-toggle:checked ~ .nav-menu {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        border-bottom: 1px solid #f0f0f0;
    }

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

    .nav-link {
        display: block;
        padding: 1rem;
        color: #004499
        text-decoration: none;
        transition: background-color 0.3s;
    }

    .nav-link:hover {
        background-color: #f8f9fa;
        color: #0066cc;
    }

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

    .hero h2 {
        font-size: 1.4rem;
    }

    .solutions-grid,
    .segments-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-legal {
        text-align: center;
    }

    .footer-info p,
    .footer-legal p {
        font-size: 0.6rem;
    }
    /* Responsive Form Styles */
    .contact-form-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem 2rem 1rem;
    }

    .contact-form h1 {
        font-size: 2.2rem;
    }

    .contact-form h2 {
        font-size: 1.4rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

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

    section {
        padding: 2rem 0;
    }

    .hero {
        padding: 4rem 0;
    }

    .solution-card,
    .segment-card {
        padding: 1.5rem;
    }

    .eu-logo,
    .gov-logo,
    .redes-logo,
    .recovery-logo,
    .kit-digital-logo {
        height: 3em;
    }

    .footer-kit-logo {
        height: 3em;
    }
    .contact-form {
        padding: 4rem 0 2rem 0;
    }

    .contact-form-container {
        padding: 1.5rem 1rem;
    }

    .contact-form h1 {
        font-size: 1.8rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
    }
}
