/* --- Variables de Color (Tema Oscuro Tech) --- */
:root {
    --bg-dark: #0a192f;        /* Azul marino muy oscuro */
    --bg-light-dark: #112240; /* Azul marino más claro (para cards) */
    --text-primary: #ccd6f6;   /* Texto principal (casi blanco) */
    --text-secondary: #8892b0; /* Texto secundario (gris azulado) */
    --accent: #64ffda;         /* Acento (verde menta/cyan) */
    --accent-dark: #52d3b8;
    --white: #ffffff;
    --danger: #ff4d4d;
}

/* --- Reseteo Básico --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Estilos Generales del Body --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Encabezado y Navegación --- */
.header {
    background-color: rgba(10, 25, 47, 0.85); /* Fondo con transparencia */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bg-light-dark);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 1px;
}

/* --- Botón de Llamada a la Acción (CTA) --- */
.cta-button {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

/* --- Sección Héroe --- */
.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Sección de Servicios --- */
.services-section {
    padding: 4rem 0;
}

.services-section h2 {
    font-size: 2.5rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-light-dark);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(2, 12, 27, 0.9);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--bg-light-dark);
    color: var(--text-secondary);
    margin-top: 2rem;
}

/* --- Modal de Contacto --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-light-dark);
    padding: 2.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-content h3 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--text-secondary);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.3);
}

.modal-error {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none; /* Oculto por defecto */
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .services-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }
}
/* --- (NUEVO) Estilos para Acordeón de Servicios --- */
.service-card-toggle {
    cursor: pointer;
    /* Agregamos una transición suave para la sombra */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* * La tarjeta de "Diseño Web" (que es un <a>) 
 * ya tenía un hover, pero esta (que es un <div>) no. 
 * Se lo agregamos para que las 3 tarjetas se comporten igual.
 */
.service-card-toggle:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.service-details {
    /* Oculto por defecto y listo para animar */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out; /* Animación suave */
    
    /* Estilos del contenido */
    text-align: left;
    margin-top: 0;
    padding-top: 0;
    /* * Pongo un color fijo. Si tenés un --border-color 
     * en tu index.css, podés reemplazarlo. 
     */
    border-top: 1px solid #3a3a3a; 
}

/* Estado activo (cuando se hace clic) */
.service-card-toggle.active .service-details {
    max-height: 500px; /* Alto máximo (ajustalo si necesitás más) */
    margin-top: 1.5rem; /* Espacio cuando está abierto */
    padding-top: 1.5rem; /* Espacio interno */
}

/* Estilos para la lista de detalles */
.service-details ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 0; /* Reseteo */
}
.service-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}
.service-details li::before {
    content: '✓';
    color: #007bff; /* Color de acento para el check */
    font-weight: bold;
    position: absolute;
    left: 0;
}
/* * Hacemos que el <p> dentro del detalle no tenga 
 * tanto margen como el <p> principal de la tarjeta.
 */
.service-details p {
    margin-bottom: 0.5rem;
    font-weight: 600;
}