/* Paleta de colores moderna y futurista */
:root {
    --primary: #0B132B;
    --secondary: #5BC0BE;
    --accent: #3A506B;
    --neon: #6FFFE9;
    --dark: #1C2541;
    --light: #F5F5F5;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-dark: rgba(11, 19, 43, 0.8);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--light);
    background-color: var(--primary);
    overflow-x: hidden;
}

/* Efectos globales */
.glass-effect {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* Navbar moderno */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--glass-dark);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--neon);
    text-shadow: 0 0 10px rgba(111, 255, 233, 0.5);
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: var(--white);
    margin: 0 1rem;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-links a:hover::before {
    transform: scaleX(1);
}

@media (max-width: 380px) {
    .navbar {
        padding: 0.8rem 3%;
    }

    .nav-links {
        margin-top: 0.5rem;
        gap: 0.5rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        margin: 0 0.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, rgba(11, 19, 43, 0.95), rgba(28, 37, 65, 0.95));
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--neon) 0%, transparent 50%);
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--white), var(--neon));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    max-width: min(800px, 90%);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btn {
    padding: 1.2rem 3rem;
    background: linear-gradient(45deg, var(--secondary), var(--neon));
    color: var(--primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--neon), var(--secondary));
    z-index: -1;
    transition: transform 0.5s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.hero-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Animaciones */
@keyframes glow {
    from {
        text-shadow: 0 0 10px var(--neon),
                     0 0 20px var(--neon),
                     0 0 30px var(--neon);
    }
    to {
        text-shadow: 0 0 20px var(--neon),
                     0 0 30px var(--neon),
                     0 0 40px var(--neon);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Services Section */
.services {
    padding: 100px 5%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, var(--neon) 0%, transparent 60%);
    opacity: 0.05;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--white);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--neon));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    max-width: min(1200px, 95%);
    margin: 0 auto;
    padding: 0 1rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: clamp(1rem, 3vw, 2rem);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.service-icon {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--accent), var(--dark));
}

.service-icon svg {
    width: clamp(40px, 8vw, 60px);
    height: clamp(40px, 8vw, 60px);
    color: var(--neon);
    filter: drop-shadow(0 0 8px var(--neon));
}

.service-content {
    padding: 0.7rem;
}

.service-content h3 {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    margin-bottom: 1rem;
    color: var(--white);
    background: linear-gradient(90deg, var(--white), var(--neon));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-content p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--neon);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-link:hover {
    text-shadow: 0 0 10px var(--neon);
    transform: translateX(5px);
}

/* Geoportal Section */
.geoportal {
    padding: 100px 5%;
    background-color: var(--primary);
    color: var(--white);
}

.geoportal-content {
    max-width: min(1200px, 95%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    padding: 0 1rem;
}

.geoportal-info h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.geoportal-info p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

@media (max-width: 380px) {
    .geoportal {
        padding: 60px 3%;
    }
    
    .geoportal-content {
        gap: 1.5rem;
    }
}

/* Geoportal visual elements */
.geoportal-visual {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    aspect-ratio: 16/9;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container {
    position: relative;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    height: 100%;
    width: 100%;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--neon) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 1;
}

.visualization-elements {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: clamp(1rem, 3vw, 2rem);
}

/* Capas del Mapa */
.map-layer {
    position: absolute;
    left: clamp(0.5rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.75rem, 3vw, 1.5rem);
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: clamp(0.3rem, 1vw, 0.5rem);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.layer-analysis {
    top: clamp(0.5rem, 3vw, 2rem);
}

.layer-base {
    top: clamp(3rem, 8vw, 6rem);
}

.layer-icon {
    width: clamp(18px, 4vw, 24px);
    height: clamp(18px, 4vw, 24px);
    color: var(--neon);
}

.layer-label {
    color: var(--white);
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    white-space: nowrap;
}

@media (max-width: 380px) {
    .map-layer {
        transform: scale(0.9);
        transform-origin: left center;
    }

    .layer-analysis {
        top: 0.5rem;
    }

    .layer-base {
        top: 2.5rem;
    }
}

/* Puntos de Análisis */
.analysis-points {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.point {
    position: absolute;
    width: clamp(8px, 2vw, 12px);
    height: clamp(8px, 2vw, 12px);
    background: var(--neon);
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.point::after {
    content: attr(data-label);
    position: absolute;
    white-space: nowrap;
    padding: clamp(0.3rem, 1.5vw, 0.5rem) clamp(0.5rem, 2vw, 1rem);
    background: var(--glass-dark);
    color: var(--white);
    border-radius: 20px;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
    pointer-events: none;
}

.point:hover::after {
    opacity: 1;
}

.point-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--neon);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.point1 { top: 45%; left: 40%; }     /* Postgres + PostGIS */
.point2 { top: 50%; left: 75%; }     /* Librerías Javascript */
.point3 { top: 80%; left: 15%; }     /* Servidores Geográficos */
.point4 { top: 15%; left: 85%; }     /* SIG de Escritorio */
.point5 { top: 15%; left: 60%; }     /* Geotecnologías Open Source */

/* Delaunay Triangulation */
.delaunay-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: visible;
}

.lines-container {
    position: absolute;
    top: 0;
    left: 0;
}

.delaunay-mesh {
    transform-origin: center;
    animation: meshFloat 20s ease-in-out infinite;
}

.delaunay-line {
    stroke: var(--neon);
    stroke-width: clamp(0.3px, 0.08vw, 0.5px);
    opacity: 0.3;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 2px var(--neon));
}

.delaunay-line:hover {
    opacity: 0.4;
    stroke-width: clamp(0.5px, 0.15vw, 1px);
}

@media (max-width: 380px) {
    .point {
        transform: scale(1.2);
    }

    .point::after {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
        top: -25px;
    }

    .delaunay-line {
        stroke-width: 0.4px;
        opacity: 0.25;
    }
}

/* Responsive */
/* Tablet y dispositivos medianos */
@media (max-width: 992px) {
    .services-grid,
    .tech-grid,
    .formacion-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .geoportal-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    .section-title {
        padding: 0 1rem;
    }


    /* Ajustes específicos para tablets */
    .hero {
        padding: 0 2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    /* Navegación */
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    .nav-links {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    .nav-links a {
        margin: 0 0.8rem;
        font-size: 0.9rem;
    }

    /* Hero */
    .hero {
        padding: 0 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    /* Secciones generales */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Grids */
    .services-grid,
    .services
    .tech-grid,
    .formacion-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    /* Geoportal */
    .geoportal-info {
        padding: 0 1rem;
    }
    .geoportal-info h2 {
        font-size: 1.8rem;
    }
    .geoportal-info p {
        font-size: 0.95rem;
    }
    .visualization-elements {
        padding: 1rem;
    }

    /* Formación */
    .formacion-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .formacion-card {
        padding: 1.5rem;
    }

    /* Contacto */
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    .contact-method {
        margin-bottom: 1.5rem;
    }
    .contact-icon {
        width: 40px;
        height: 40px;
        margin-right: 1rem;
    }
    .contact-method span {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .social-links {
        gap: 1rem;
    }
}

/* Optimización para móviles */
@media (max-width: 550px) {
    .services-grid, .tech-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: clamp(1rem, 3vw, 2rem);
        max-width: min(1200px, 95%);
        margin: 0 auto;
        padding: 0 1rem;
    }

    .service-card, .tech-item {
        padding: clamp(1rem, 3vw, 2rem);
    }

    .service-icon svg, .tech-icon svg {
        width: clamp(40px, 8vw, 60px);
        height: clamp(40px, 8vw, 60px);
    }

    .service-content h3, .tech-item h3 {
        font-size: clamp(0.7rem, 3vw, 0.9rem);
    }

    .service-content p, .tech-item p {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }

    .contact-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
        gap: clamp(2rem, 5vw, 4rem);
        max-width: min(1200px, 95%);
        margin: 2rem auto 0;
        padding: 0 1rem;
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .contact-info p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    @media (max-width: 380px) {
        .section-title {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
        }

        .services, .tech {
            padding: 60px 3%;
        }

        .service-card, .tech-item {
            margin-bottom: 1rem;
        }
    }
}

/* Elementos de Interfaz */
.interface-elements {
    position: absolute;
    bottom: clamp(0.5rem, 3vw, 2rem);
    right: clamp(0.5rem, 3vw, 2rem);
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
}

.control-panel {
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(0.5rem, 2vw, 1rem);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: clamp(0.3rem, 1vw, 0.5rem);
}

.control-item {
    width: clamp(20px, 4vw, 30px);
    height: clamp(4px, 1vw, 6px);
    background: var(--neon);
    border-radius: 3px;
    opacity: 0.7;
}

.data-panel {
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(0.5rem, 2vw, 1rem);
    border-radius: 10px;
    width: clamp(80px, 20vw, 150px);
}

.data-line {
    height: clamp(3px, 1vw, 4px);
    background: var(--neon);
    border-radius: 2px;
    margin-bottom: clamp(0.3rem, 1vw, 0.5rem);
    opacity: 0.7;
}

.data-chart {
    height: clamp(25px, 6vw, 40px);
    background: linear-gradient(90deg, var(--neon) 0%, transparent 100%);
    border-radius: 5px;
    opacity: 0.5;
}

@media (max-width: 380px) {
    .interface-elements {
        transform: scale(0.85);
        transform-origin: bottom right;
    }

    .data-panel {
        width: clamp(60px, 18vw, 80px);
    }
}

/* Tech Section */
.tech {
    padding: clamp(60px, 10vw, 100px) 5%;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    position: relative;
    overflow: hidden;
}

.tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, var(--secondary) 0%, transparent 70%);
    opacity: 0.05;
}

.tech-container {
    max-width: min(1200px, 95%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    margin-top: 3rem;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.tech-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.tech-icon {
    width: clamp(50px, 8vw, 60px);
    height: clamp(50px, 8vw, 60px);
    margin: 0 auto clamp(1rem, 3vw, 1.5rem);
    background: linear-gradient(135deg, var(--secondary), var(--neon));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
}

.tech-icon svg {
    width: clamp(25px, 4vw, 30px);
    height: clamp(25px, 4vw, 30px);
}

.tech-item h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    color: var(--white);
    margin-bottom: clamp(0.5rem, 1.5vw, 0.8rem);
}

.tech-item p {
    color: var(--neon);
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    opacity: 0.9;
}

.tech-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.tech-list li {
    color: var(--light);
    margin-bottom: clamp(0.4rem, 1vw, 0.5rem);
    font-size: clamp(0.85rem, 1.8vw, 0.9rem);
    opacity: 0.8;
    position: relative;
    padding-left: 1.5rem;
}

.tech-list li::before {
    content: '•';
    color: var(--neon);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
}

@media (max-width: 380px) {
    .tech {
        padding: 40px 3%;
    }

    .tech-grid {
        gap: 1rem;
    }

    .tech-item {
        padding: 1.2rem;
    }

    .tech-icon {
        margin-bottom: 0.8rem;
    }

    .tech-list li {
        padding-left: 1.2rem;
    }
}

/* Formación Section */
.formacion {
    padding: clamp(60px, 10vw, 100px) 5%;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.formacion::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, var(--secondary) 0%, transparent 60%);
    opacity: 0.05;
}

.formacion-container {
    max-width: min(1200px, 95%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.formacion-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 3rem);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.formacion-header {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.formacion-icon {
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    background: linear-gradient(135deg, var(--secondary), var(--neon));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(111, 255, 233, 0.3);
    flex-shrink: 0;
}

.formacion-icon svg {
    width: clamp(30px, 5vw, 40px);
    height: clamp(30px, 5vw, 40px);
    color: var(--primary);
}

.formacion-title h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--white);
    margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
}

.formacion-title p {
    color: var(--light);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.8;
}

.formacion-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

.formacion-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: clamp(1.5rem, 4vw, 2rem);
    transition: all 0.3s ease;
}

.formacion-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.formacion-item h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    color: var(--neon);
    margin-bottom: clamp(0.8rem, 2vw, 1rem);
}

.formacion-item p {
    color: var(--light);
    line-height: 1.6;
    font-size: clamp(0.85rem, 1.8vw, 0.9rem);
    opacity: 0.8;
}

@media (max-width: 380px) {
    .formacion {
        padding: 40px 3%;
    }

    .formacion-card {
        padding: 1.2rem;
        margin-top: 1.5rem;
    }

    .formacion-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .formacion-content {
        gap: 1rem;
    }

    .formacion-item {
        padding: 1.2rem;
    }
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: clamp(2rem, 6vw, 4rem) 5% clamp(1rem, 3vw, 2rem);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom, var(--neon) 0%, transparent 70%);
    opacity: 0.05;
}

.footer-content {
    max-width: min(1200px, 95%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--neon);
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    text-shadow: 0 0 10px rgba(111, 255, 233, 0.3);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(1rem, 2vw, 2rem);
    margin: clamp(1.5rem, 3vw, 2rem) 0;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.footer-links a:hover {
    color: var(--neon);
    text-shadow: 0 0 10px rgba(111, 255, 233, 0.5);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    margin: clamp(1.5rem, 3vw, 2rem) 0;
}

.social-icon {
    width: clamp(40px, 8vw, 45px);
    height: clamp(40px, 8vw, 45px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--neon);
    transform: translateY(-5px);
}

.social-icon svg {
    width: clamp(18px, 3vw, 20px);
    height: clamp(18px, 3vw, 20px);
    color: var(--white);
}

.copyright {
    text-align: center;
    color: var(--white);
    opacity: 0.7;
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    margin-top: clamp(1.5rem, 3vw, 2rem);
}

@media (max-width: 380px) {
    .footer {
        padding: 2rem 3% 1rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }

    .social-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Contact Section */
.contact {
    padding: clamp(60px, 10vw, 100px) 5%;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--neon) 0%, transparent 70%);
    opacity: 0.05;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    max-width: min(1200px, 95%);
    margin: 2rem auto 0;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
    position: relative;
    z-index: 2;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 15px;
    height: fit-content;
}

.contact-info h3 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: var(--neon);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.contact-info p {
    color: var(--white);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    opacity: 0.9;
    line-height: 1.6;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: clamp(1rem, 2.5vw, 2rem);
    color: var(--white);
    transition: transform 0.3s ease;
}

.contact-method:last-child {
    margin-bottom: 0;
}

.contact-method:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: clamp(35px, 6vw, 45px);
    height: clamp(35px, 6vw, 45px);
    margin-right: clamp(0.8rem, 2vw, 1.5rem);
    background: linear-gradient(135deg, var(--secondary), var(--neon));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: clamp(18px, 3vw, 22px);
    height: clamp(18px, 3vw, 22px);
    color: var(--primary);
}

.contact-method span {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--light);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 15px;
}

.contact-form h3 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: var(--neon);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.form-group {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.form-group label {
    display: block;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 1.8vw, 0.95rem);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: clamp(0.8rem, 2vw, 1rem);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--white);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 0 2px rgba(111, 255, 233, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-btn {
    width: 100%;
    padding: clamp(0.8rem, 2vw, 1rem);
    background: linear-gradient(45deg, var(--secondary), var(--neon));
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 380px) {
    .contact {
        padding: 40px 3%;
    }

    .contact-grid {
        gap: 1.5rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.2rem;
    }

    .contact-method {
        margin-bottom: 1rem;
    }

    .contact-icon {
        width: 32px;
        height: 32px;
        margin-right: 0.8rem;
    }

    .contact-icon svg {
        width: 16px;
        height: 16px;
    }

    .form-group {
        margin-bottom: 0.8rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
    }
}