<style>
/* Variables de diseño */
:root {
    --primary-color: #6A0DAD;
    --primary-hover: #520a8a;
    --bg-light: #f8f9fa;
    --text-dark: #333333;
    --text-muted: #666666;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body{
    background: var(--bg-light);
    color: var(--text-dark);
    scroll-behavior: smooth;
}

/* Header & Navegación */
header {
    
background-color: #E6E6FA; /* Lavanda */
  color: #333333; /* Texto oscuro para que se lea mejor */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {

background-color: #E6E6FA; /* Lavanda */
  color: #333333; /* Texto oscuro para que se lea mejor */

    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

header h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Carrusel (Hero) */
.carousel-container {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 400px;
    overflow: hidden;
    background: #000;
}

.carousel-slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    animation: fade 0.8s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55; /* Oscurece la imagen para leer mejor el texto */
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    width: 85%;
}

.carousel-caption h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.carousel-caption p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

/* Controles del Carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    user-select: none;
}

.carousel-btn:hover {
    background: var(--primary-color);
}

.prev { left: 20px; }
.next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Estructura General */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 80px 0;
}

.titulo {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2.3rem;
    position: relative;
}

.titulo::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.tres-columnas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Tarjetas */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 35px 25px;
    text-align: center;
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(106, 13, 173, 0.15);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contador */
.contador-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.contador-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contador {
    font-size: 4.5rem;
    font-weight: bold;
}

/* Testimonios */
.testimonios-bg {
    background: #f1f3f5;
}

.testimonios{
    background:#f8f9fa;
    padding:80px 20px;
    text-align:center;
}

.testimonios h2{
    font-size:2.2rem;
    margin-bottom:40px;
    color:#003366;
}

.testimonial-slider{
    max-width:800px;
    margin:auto;
    position:relative;
}

.testimonial{
    display:none;
    background:white;
    padding:40px;
    border-radius:15px;
    box-shadow:0 5px 25px rgba(0,0,0,.1);
    animation:fade .6s ease;
}

.testimonial.active{
    display:block;
}

.quote{
    font-size:50px;
    color:#ff9900;
    margin-bottom:15px;
}

.testimonial p{
    font-size:1.1rem;
    line-height:1.8;
    color:#555;
}

.testimonial h4{
    margin-top:20px;
    color:#003366;
}

.testimonial span{
    color:#888;
    font-size:14px;
}

.testimonial-controls{
    margin-top:25px;
}

.testimonial-controls button{
    background:#003366;
    color:white;
    border:none;
    padding:12px 18px;
    margin:0 5px;
    border-radius:50%;
    cursor:pointer;
    font-size:18px;
    transition:.3s;
}

.testimonial-controls button:hover{
    background:#ff9900;
}

@keyframes fade{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
/* Contacto */
.contacto form {
    max-width: 600px;
    margin: auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contacto input,
.contacto textarea {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contacto input:focus,
.contacto textarea:focus {
    border-color: var(--primary-color);
}

.btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--primary-hover);
}

/* Footer */
footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

/* Responsivo */
@media(max-width: 768px){
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    nav a {
        margin: 0 10px;
    }
    .carousel-caption h2 {
        font-size: 2rem;
    }
    .carousel-caption p {
        font-size: 1rem;
    }
    .carousel-container {
        height: 50vh;
    }
}
</style>
