/* styles.css */

/* --- 1. Variables Globales y Reset --- */
:root {
    /* Paleta Naranja */
    --primary-color: #ff8c00; /* Naranja Brillante (DarkOrange) */
    --primary-light: #ffa500; /* Naranja más claro para hover */
    
    /* Colores Oscuros */
    --bg-color: #121212; /* Fondo muy oscuro */
    --card-bg: #1e1e1e; /* Fondo de tarjetas */
    --text-color: #e0e0e0; /* Texto claro */
    --secondary-text: #a0a0a0; /* Texto secundario */

    /* Tipografía y Estructura */
    --font-family: 'Poppins', sans-serif;
    --border-radius: 10px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.page-container {
    max-width: 1100px; 
    margin: 0 auto;
    padding: 0 25px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-light);
}

/* --- 2. Encabezado / Sección Hero --- */
.hero-section {
    text-align: center;
    padding: 80px 0 60px;
}

.main-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Título responsive */
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 5px;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--secondary-text);
    margin-bottom: 25px;
    font-weight: 300;
}

.status-message {
    font-style: italic;
    color: var(--primary-color);
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    display: inline-block;
    border-radius: 5px;
}

/* --- 3. Grid de Proyectos --- */
.projects-grid {
    display: grid;
    /* Grid de 3 columnas en desktop, se ajusta automáticamente */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 70px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-top: 5px solid transparent; 
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-top-color var(--transition-speed) ease;
}

.project-card:hover {
    transform: translateY(-8px); /* Efecto de levantamiento */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    border-top-color: var(--primary-color); /* Borde naranja destacado */
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-content h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.card-content p {
    color: var(--secondary-text);
    margin-bottom: 15px;
}

.card-action {
    display: block;
    margin-top: auto; /* Empuja la acción al fondo de la tarjeta */
    font-weight: 600;
    color: var(--primary-color);
}

.card-status {
    color: #ff4500; /* Rojo-naranja para el estado */
    font-weight: 600;
}

/* --- 4. Sección de Contacto --- */
.contact-me-section {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #2a2a2a;
    margin-bottom: 50px;
}

.contact-me-section h2 {
    margin-bottom: 25px;
    font-size: 2rem;
}

.social-icons {
    font-size: 2.2rem;
    margin: 30px 0;
}

.social-icons a {
    margin: 0 18px;
    color: var(--secondary-text); /* Iconos por defecto gris oscuro */
}

.social-icons a:hover {
    color: var(--primary-color); /* Naranja en hover */
    transform: scale(1.2);
    display: inline-block;
}

.email-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--bg-color); /* Texto oscuro en botón brillante */
    border-radius: 50px; /* Forma de pastilla */
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 15px;
    transition: background-color var(--transition-speed) ease;
}

.email-button:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(255, 140, 0, 0.3);
}

/* --- 5. Pie de Página --- */
.site-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #2a2a2a;
    font-size: 0.8rem;
    color: var(--secondary-text);
}

/* --- 6. Media Queries (Responsividad) --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0 40px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr; /* Una columna en móviles */
        gap: 20px;
    }

    .social-icons {
        font-size: 1.8rem;
    }

    .social-icons a {
        margin: 0 12px;
    }

    .email-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}