@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&display=swap');
/* --- VARIABLES Y RESET --- */
:root {
    --primary: #2c5282;      /* Azul serio y confiable */
    --primary-dark: #1a365d;
    --accent: #c05621;       /* Toque cálido (ladrillo/naranja suave) para botones */
    --text-main: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif; /* Fuente limpia y legible */
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}
.pinyon-script-regular {
  font-family: "Pinyon Script", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 2.5rem;
  color: var(--primary);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif; /* Fuente elegante para títulos */
    color: var(--primary-dark);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #9c4215;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* --- HEADER --- */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px; /* Ajusta según tu logo real */
}

.nav a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 25px;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav .btn-nav {
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
}

/* --- HERO SECTION --- */
.hero {
    height: 85vh;
    background-image: url('https://images.unsplash.com/photo-1576765608535-5f04d1e3f289?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); /* Imagen genérica de adultos mayores/cuidado */
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 80px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    background: rgba(30, 58, 138, 0.75); /* Capa azul superpuesta */
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    display: flex;
    align-items: center;
}

.hero-content {
    color: var(--white);
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* --- SECCIONES GENERALES --- */
.section {
    padding: 80px 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-dark); }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.text-center { text-align: center; }
.text-center.section-title::after { left: 50%; transform: translateX(-50%); }

.subtitle {
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* --- LAYOUTS --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.check-list {
    list-style: none;
    margin-top: 20px;
}

.check-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.check-list li::before {
    content: '✓';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.image-content img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* --- SERVICIOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 4px solid var(--primary);
}

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

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* --- CONTACTO --- */
.text-white { color: var(--white); }
.text-white h2 { color: var(--white); }

.contact-info .info-item {
    margin-top: 30px;
    font-size: 1.1rem;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.full-width { width: 100%; }

/* --- FOOTER --- */
.footer {
    background-color: #1a202c;
    color: #a0aec0;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- CARRUSEL DE IMÁGENES --- */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px; /* Altura fija para mantener el diseño */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la foto llene el espacio sin deformarse */
}

/* Botones del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(44, 82, 130, 0.7); /* Azul con transparencia */
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    transition: background-color 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(192, 86, 33, 0.9); /* Color acento al pasar el mouse */
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* Ajuste responsive para móviles */
@media (max-width: 768px) {
    .carousel-container {
        height: 300px; /* Un poco más bajo en celulares */
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .nav { display: none; } /* Aquí se implementaría menú móvil */
    .hero { text-align: center; justify-content: center; }
    .hero-buttons { display: flex; flex-direction: column; gap: 10px; }
    .btn-outline { margin-left: 0; }
}