/* Estilos generales */
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: #111;
}

header {
    padding: 40px 0 80px;
    text-align: center;
}

/* NAV */
nav {
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 700;
}

.logo span {
    color: #555;
}

/* Botón presupuesto */
.btn-presupuesto {
    padding: 10px 18px;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-presupuesto:hover {
    opacity: 0.8;
}

/* Hero */
.hero h2 {
    font-size: 38px;
    max-width: 700px;
    margin: 40px auto 20px;
}

.hero p {
    max-width: 600px;
    margin: auto;
    color: #444;
}

.btn-primario {
    display: inline-block;
    margin-top: 25px;
    background: #111;
    color: white;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

/* Secciones */
.seccion {
    padding: 70px 20px;
    text-align: center;
}

.titulo-seccion {
    font-size: 32px;
    margin-bottom: 35px;
}

/* Grid de cards */
.grid-4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.card {
    width: 260px;
    background: #f7f7f7;
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;

    display: flex;
    flex-direction: column;
    align-items: center;
}
.card:hover {
    transform: translateY(-4px);
}

.icono {
    height: 50px;              /* MISMA altura para todos */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
/* Cards "por qué elegirme" */
.card-simple {
    background: #f7f7f7;
    padding: 25px;
    border-radius: 12px;
    width: 260px;
    transition: 0.3s;
}

.card-simple:hover {
    transform: translateY(-4px);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    text-align: center;
    min-height: 52px; /* ahora SÍ funciona */
}
.card-simple p {
    color: #444;
    font-size: 15px;
    line-height: 1.5;
    
}

/* Botón grande presupuesto */
.grande {
    margin-top: 25px;
    display: inline-block;
    padding: 15px 32px;
    font-size: 18px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    font-size: 14px;
    color: #777;
}
.sobre-mi {
    background: #f7f7f7;
}

.sobre-mi-box {
    max-width: 720px;
    margin: auto;
    background: white;
    padding: 40px;
    border-radius: 14px;
}

.sobre-mi-box p {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 16px;
}

.sobre-mi-box .destacado {
    font-size: 18px;
    color: #111;
    font-weight: 600;
}
.sobre-mi {
    background: #f7f7f7;
}

.sobre-mi-grid {
    max-width: 900px;
    margin: auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: center;
}

.sobre-mi-foto img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .sobre-mi-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sobre-mi-foto img {
        max-width: 220px;
        margin: auto;
    }
}
/* Estilos para la Tabla de Precios */
.grid-precios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.card-precio {
    background: white;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    transition: 0.3s;
}

.card-precio:hover {
    border-color: #111;
    transform: translateY(-5px);
}

.card-precio.destacado {
    background: #111;
    color: white;
}

.card-precio h3 { font-size: 22px; margin-bottom: 10px; }

.monto { font-size: 32px; font-weight: 800; margin-bottom: 20px; }
.monto span { font-size: 14px; font-weight: 400; opacity: 0.7; }

.card-precio ul { list-style: none; padding: 0; margin-bottom: 25px; text-align: left; }
.card-precio ul li { margin-bottom: 10px; font-size: 15px; }
.card-precio ul li::before { content: "✓ "; color: #555; font-weight: bold; }
.destacado ul li::before { color: #fff; }

.nota { font-size: 12px; font-style: italic; margin-bottom: 15px; opacity: 0.8; }

/* Centrar el contenedor del formulario */
.form-container {
    max-width: 600px; /* Ancho controlado para que no se estire de más */
    margin: 40px auto; /* El "auto" lo centra horizontalmente [6] */
    background: #f7f7f7;
    padding: 40px;
    border-radius: 16px;
    text-align: left; /* Para que los labels e inputs se lean bien */
}

/* Estilo del mensaje de éxito */
.mensaje-exito {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto 20px;
    font-weight: 600;
    border: 1px solid #c3e6cb;
}

/* Asegurar que el botón también esté centrado si lo deseás */
.form-container form button {
    margin: 20px auto 0;
    display: block;
}
form { display: flex; flex-direction: column; gap: 15px; }

.form-group { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

input, select, textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
}

input:focus, textarea:focus { outline: 1px solid #111; }

.btn-secundario {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #111;
    text-decoration: none;
    color: #111;
    border-radius: 6px;
    font-weight: 600;
}

.destacado .btn-secundario {
    border-color: white;
    color: white;
}

@media (max-width: 600px) {
    .form-group { grid-template-columns: 1fr; }
}
