/* Estilos generales */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f8ff;
            color: #333;
            line-height: 1.6;
        }
        
        .contenedor {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Encabezado */
        header {
            background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
            color: white;
            padding: 40px 0;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        

        .foto {
        width: 100%;
        height: 100%;
        object-fit: cover;
                }
        
        /* Perfil con foto */
        .perfil {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .contenedorFoto {
            width: 180px;
            height: 180px;
            border-radius: 50%;
            overflow: hidden;
            border: 5px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
            margin-bottom: 20px;
            background: linear-gradient(45deg, #3498db, #2c3e50);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 5rem;
        }
        
        .profile-info {
            text-align: center;
        }
        
        .profile-info h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }
        
        .profile-info p {
            font-size: 1.2rem;
            opacity: 0.9;
        }
        
        /* Secciones */
        section {
            padding: 60px 0;
        }
        
        h2 {
            text-align: center;
            margin-bottom: 40px;
            color: #2c3e50;
            font-size: 2.2rem;
            position: relative;
        }
        /*rayita despues del titulo*/
        h2::after {
            content: '';
            display: block;
            width: 100px;
            height: 4px;
            background: #3498db;
            margin: 15px auto;
            border-radius: 2px;
        }
        
        /* Sobre mí */
        #sobre-mi {
            background-color: white;
        }
        
        /* Proyectos */
        .proyectos-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }
        
        .proyecto {
            background: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .proyecto:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }
        
        .proyecto h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 1.4rem;
        }
        
        .proyecto p {
            color: #555;
        }
        
        /* Habilidades */
        #habilidades {
            background-color: #cfddf8;
        }
        
        .habilidades-lista {
            display: flex;
            flex-wrap: wrap;/*Hace que los elementos se ajusten en varias filas si no caben en una sola línea.*/
            justify-content: center;
            gap: 15px;
            /*Añade un espacio uniforme de 15 píxeles entre cada ítem*/
        }
        
        .habilidad {
            background: #3498db;
            color: white;
            padding: 12px 25px;
            border-radius: 30px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
            box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
        }
        
        /* Contacto */
        #contacto {
            background-color: white;
        }
        
        form {
            max-width: 600px;
            margin: 0 auto;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        input, textarea {
            width: 100%;
            padding: 15px;
            border: 1px solid #586471;
            border-radius: 8px;
            font-size: 1rem;
            transition: border-color 0.3s;
        }
        
        input:focus, textarea:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        }
        
        button {
        background: #283c50;       /* Color de fondo azul oscuro */
        color: white;              /* Texto en blanco */
         border: none;              /* Sin borde */
        padding: 8px 20px;        /* Espaciado interno (alto y ancho) */
        border-radius: 8px;        /* Bordes redondeados */
        cursor: pointer;           /* Cambia el cursor a "mano" */
        font-size: 1.1rem;         /* Tamaño de fuente */
        font-weight: 600;          /* Texto más grueso */
        transition: background 0.3s, transform 0.2s; /* Animación suave */
        display: block;            /* Ocupa todo el ancho disponible */
        margin: 0 auto;            /* Centrado horizontal */
        }
        
        button:hover {
            background: #3498db; /* Cambia el color suavemente */
            transform: translateY(-2px);/*se mueve*/
            /*transform: scale(1.05); /* Se agranda un poquito */
        }
        
        /* Pie de página */
        footer {
            background: #2c3e50;
            color: white;
            text-align: center;
            padding: 30px 0;
            margin-top: 40px;
        }
        
        .enlaces {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 20px 0;
        }
        
        .enlaces a {
            color: white;
            font-size: 1.5rem;
            transition: color 0.3s;
            text-decoration: none;
        }
        
        .enlaces a:hover {
            color: #3498db;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .profile-info h1 {
                font-size: 2rem;
            }
            
            .photo-container {
                width: 150px;
                height: 150px;
                font-size: 4rem;
            }
            
            section {
                padding: 40px 0;
            }
        }