/* === VARIABLES Y ESTILOS GLOBALES === */
:root{
    --accent:#00C2FF;
    --accent-2:#00C2FF;
    --bg:#F8FAFC;
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --card:#FFFFFF;
    --muted:#6B7280;
    --text: #1F2937;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
}
*{box-sizing:border-box}

html { scroll-behavior: smooth; }

body {
    margin:0;
    font-family: Inter, system-ui, -apple-system, 'Helvetica Neue', Arial;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing:antialiased;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.6;
}

/* === CONTENEDOR PRINCIPAL === */
.container{
    max-width:1100px;
    margin:0 auto;
    padding: clamp(1rem, 5vw, 2.5rem);
}

/* === CABECERA Y NAVEGACIÓN === */
header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 1rem;
    position: sticky; /* Cabecera fija */
    top: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.brand-link{text-decoration:none;color:inherit;cursor:pointer}
.brand{display:flex;align-items:center;gap:16px}
.brand img{
    width: clamp(60px, 10vw, 125px);
    height: clamp(60px, 10vw, 85px);
    object-fit:cover;
    border-radius:12px;
    box-shadow:0 8px 24px rgba(0,0,0,.6);
    transition: transform 0.3s ease;
}
.brand-link:hover img { transform: scale(1.05); }

.brand h1 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin:0;
    letter-spacing:1px
}
nav a{color:var(--muted);text-decoration:none;margin-left:16px;cursor:pointer; transition: color 0.3s ease; font-weight: 500;}
nav a:hover { color: var(--accent); }

/* === ESTRUCTURA DE PANTALLAS (SPA) === */
.screen{display:none;animation:fade .45s ease both;padding-top:8px}
.screen.active{display:block}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* === TIPOGRAFÍA Y BOTONES === */
.kicker{display:inline-block;padding:6px 12px;background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#FFFFFF;border-radius:999px;font-weight:700; font-size: 0.8rem;}
h2{
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 16px 0;
    line-height: 1.2;
}
p.lead{
    color:var(--muted);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 70ch;
}
.btn{display:inline-block;padding:12px 20px;border-radius:10px;background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#FFFFFF;font-weight:700;text-decoration:none; transition: transform 0.3s ease, box-shadow 0.3s ease;}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 194, 255, 0.2); }

.hero-buttons { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.hero-cards { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:24px; }

/* === TARJETAS Y CUADRÍCULAS === */
    .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin-top:24px}
    .card{background: var(--bg-secondary, #FFFFFF); padding:20px;border-radius:16px; border: 1px solid var(--border-color, #E5E7EB); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); transition: all 0.3s ease;}
    .card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); border-color: var(--accent); }
.hero-img{width:100%;border-radius:16px;box-shadow:0 10px 40px rgba(0,0,0,.6);border:1px solid rgba(255,255,255,0.04); margin-top: 24px;}

/* --- ESTILOS PARA LA SECCIÓN DE PROYECTOS --- */
.project-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}
.project-card h3 { margin: 0 0 8px 0; }

    /* --- ESTILOS PARA LA SECCIÓN DE RESEÑAS --- */
    .testimonial-grid { display: grid; gap: 20px; margin-top: 24px; }
    .testimonial-card {
        background: var(--bg-secondary, #FFFFFF);
        padding: 24px;
        border-radius: 12px;
        border-left: 4px solid var(--accent);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border: 1px solid var(--border-color, #E5E7EB);
    }
    .testimonial-card p { margin: 0; font-style: italic; color: var(--text-primary, #1F2937); }
    .testimonial-card footer { margin-top: 16px; color: var(--text-secondary, #6B7280); font-style: normal; }/* --- ESTILOS PARA LA SECCIÓN DE FAQ (ACORDEÓN) --- */
.faq-container { max-width: 800px; margin: 24px auto 0; }
details {
    background: var(--bg-secondary, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-primary, #1F2937);
}
summary::after { /* Crea el icono "+" */
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
details[open] summary::after { /* Cambia el icono a "x" */
    transform: rotate(45deg);
}
    summary {
        color: var(--text-primary, #1F2937);
    }
    
    details p {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border-color, #E5E7EB);
        color: var(--text-secondary, #6B7280);
    }/* === FOOTER Y OTROS === */
.mini{font-size:0.9rem;color:var(--muted); line-height: 1.5;}
footer{margin:32px 0 16px;color:var(--muted);font-size:14px;text-align:center}

/* === ESTILOS PARA LOGIN Y REGISTRO === */
    .form-container {
        max-width: 500px;
        margin: 32px auto;
        background: var(--bg-secondary, #FFFFFF);
        border: 1px solid var(--border-color, #E5E7EB);
        border-radius: 10px;
        padding: 32px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--text-primary, #1F2937);
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 12px;
        background: var(--bg-primary, #F8FAFC);
        border: 1px solid var(--border-color, #E5E7EB);
        border-radius: 6px;
        color: var(--text-primary, #1F2937);
        font-size: 1rem;
        font-family: inherit;
    }.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.error-msg {
    color: var(--accent-2);
    font-size: 0.9rem;
    margin-top: 8px;
    margin-bottom: 16px;
}

.btn-login {
    padding: 8px 16px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-login:hover {
    background: #00b8e6;
    transform: translateY(-2px);
}

/* === ESTILOS PARA MIS PEDIDOS === */
.pedidos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.pedido-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pedido-card h3 {
    margin-top: 0;
    color: var(--accent);
    font-size: 1.2rem;
}

.pedido-card p {
    margin: 8px 0;
    color: var(--text-primary);
}

/* === MEDIA QUERIES PARA RESPONSIVE === */
@media(max-width: 768px){
    header {
        flex-direction: column;
        text-align: center;
    }
    nav { 
        margin-top: 12px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav a { margin: 5px 8px; }
    .hero-cards {
        grid-template-columns: 1fr;
    }
    .form-container {
        padding: 20px;
    }
    .pedidos-container {
        grid-template-columns: 1fr;
    }
}