@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

:root {
    --primary: #2d6a4f;
    --primary-light: #40916c;
    --secondary: #95d5b2;
    --bg: #f8f9fa;
    --text: #1b4332;
    --error: #d90429;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--bg);
    color: var(--text);
}

/* ERROR 13: 2.4.7 Focus Visible - Se elimina el outline de enfoque por defecto */
*:focus {
    outline: none;
}

header {
    background: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

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

section {
    padding: 80px 10%;
}

.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('https://images.unsplash.com/photo-1470058869958-2a77a61d121c?q=80&w=2000') center/cover;
    display: flex;
    align-items: center;
    color: white;
}

/* ERROR 4: 1.4.3 Contrast (Minimum) - Texto en gris claro sobre fondo claro del hero */
.hero h1 {
    font-size: 3.5rem;
    color: #d1d1d1; 
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 500px;
}

/* ERROR 9: 2.3.1 Three Flashes - Simulación de elemento parpadeante */
.flash-box {
    background: var(--error);
    padding: 10px;
    margin-top: 20px;
    display: inline-block;
    animation: flash 0.1s infinite;
}

@keyframes flash {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

/* ERROR 7: 1.4.4 Resize text - Contenedor con altura fija en PX que romperá el diseño al hacer zoom */
.info-fixed-box {
    height: 150px;
    overflow: hidden;
    background: #e9ecef;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
}

.prices {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.price-box {
    background: var(--primary);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    width: 300px;
}

.price-box h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.price-box p { font-size: 2rem; font-weight: bold; }

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input, select, textarea {
    padding: 1rem;
    border-radius: 8px;
    /* ERROR 6: 1.4.11 Non-text Contrast - Bordes con muy poco contraste */
    border: 1px solid #f1f1f1;
    font-family: inherit;
    font-size: 1rem;
}

/* ERROR 5: 1.4.1 Use of Color - Solo el color rojo indica error */
.error-msg {
    color: #ff0000;
    font-weight: bold;
    display: none;
}

.error-active .error-msg {
    display: block;
}

button {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

footer {
    background: var(--text);
    color: white;
    padding: 2rem;
    text-align: center;
}

iframe {
    width: 100%;
    height: 450px;
    border: 0;
    margin-top: 2rem;
    filter: grayscale(1);
    border-radius: 15px;
}

#testimonial-slider {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    margin-top: 2rem;
    /* Movimiento automático se maneja en JS */
}

@media (max-width: 768px) {
    header { flex-direction: column; gap: 1rem; }
    nav ul { gap: 1rem; }
}