:root {
    --color-primary: #a61a23;
    --color-primary-light: #d6454d;
    --color-secondary: #027e3d;
    --color-secondary-light: #35a86a;
    --color-accent: #ffc107;
    --color-light: #f8f9fa;
    --color-dark: #212529;
    --color-text: #495057;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--color-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Header */
.navbar {
    background: #027e3d;
    padding: 0.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 2px rgba(2, 126, 61, 0.2));
    }
    to {
        filter: drop-shadow(0 0 5px rgba(2, 126, 61, 0.4));
    }
}

.logo img {
    width: 100px;
    height: auto;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: rgb(0, 0, 0);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-links a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.nav-links a i {
    font-size: 0.6rem;
}

.burger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
}

/* Hero Section - Mejorada */
.hero {
    background: linear-gradient(135deg, rgba(248,249,250,0.95), rgba(248,249,250,0.95));
    padding: 100px 0 60px;  /* Adjusted to account for smaller navbar */
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--color-dark);
}

.hero h1 span {
    color: var(--color-secondary);
    display: inline;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: var(--color-text);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2, 126, 61, 0.1), rgba(2, 126, 61, 0.3));
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.hero-image:hover .image-overlay {
    opacity: 0.5;
}

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
    justify-content: center;
}

.indicator {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-left: 3px solid var(--color-secondary);
}

.indicator:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.indicator i {
    color: var(--color-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.indicator span {
    font-weight: 600;
    color: var(--color-dark);
    white-space: nowrap;
}

/* Secciones */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* Servicios */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.servicio-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-top: 4px solid var(--color-secondary);
    position: relative;
    overflow: hidden;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.edad-tag {
    background: var(--color-primary);
    color: white;
    padding: 0.3rem 1.5rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    position: absolute;
    top: -10px;
    right: 20px;
}

.servicio-icon {
    width: 60px;
    height: 60px;
    background: rgba(2, 126, 61, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
    font-size: 1.5rem;
}

.servicio-card h3 {
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.servicio-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--color-primary);
    font-weight: 600;
    transition: var(--transition);
}

.servicio-link:hover {
    color: var(--color-primary-light);
    transform: translateX(5px);
}

/* Galería */
.gallery-swiper {
    padding: 2rem 0;
}

.swiper-slide {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.swiper-slide:hover {
    transform: scale(1.02);
}

.swiper-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Video Section */
.video-section {
    background: var(--color-light);
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 2rem;
    text-align: center;
}

.video-icon {
    width: 60px;
    height: 60px;
    background: rgba(2, 126, 61, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-secondary);
    font-size: 1.5rem;
}

.video-info h3 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.video-description {
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Testimonios */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonio-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.testimonio-card:hover {
    transform: translateY(-5px);
}

.testimonio-icon {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.testimonio-texto {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonio-autor {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1.5rem;
}

.testimonio-autor img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.autor-info h4 {
    color: var(--color-secondary);
    margin: 0;
    font-size: 1.1rem;
}

.autor-info span {
    color: var(--color-text);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Formulario de Contacto */
.modern-form {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.full-width {
    grid-column: span 2;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 126, 61, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(166, 26, 35, 0.3);
}

/* Mapa */
.map-section {
    background: var(--color-light);
}

.map-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-wrapper {
    height: 450px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-info {
    padding: 2rem;
    text-align: center;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(2, 126, 61, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--color-secondary);
    font-size: 1.5rem;
}

.info-card h3 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

/* Footer */
.modern-footer {
    background: linear-gradient(135deg, #027e3d 0%, #025928 100%);
    color: white;
    padding: 2rem 0 1rem;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 2rem;
    justify-content: space-between;
}

/* Media queries adjustments */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.footer-brand img {
    width: 200px;
    height: auto;
    margin-bottom: 0.8rem;
}

.footer-brand p {
    font-size:1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-contact li,
.footer-links li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-brand img {
        width: 150px;
    }
}

.footer-contact h4,
.footer-links h4 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-contact ul,
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: white;
    opacity: 0.9;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        padding: 120px 0 60px;  /* Increased top padding */
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding: 0;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2rem;
    }
    
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .testimonios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        color: var(--color-dark);
    }
    
    .burger {
        display: block;
    }
    
    .hero {
        padding: 130px 0 40px;  /* Further increased top padding for mobile */
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .trust-indicators {
        gap: 0.8rem;
    }
    
    .indicator {
        padding: 0.8rem 1.2rem;
    }
    
    .indicator span {
        font-size: 0.9rem;
    }
    
    .testimonios-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .full-width {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .map-wrapper {
        height: 300px;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation: fadeInUp 0.6s ease forwards;
}

/* Featured Image Section */
.featured-image {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(248,249,250,0.95), rgba(248,249,250,0.95));
}

.featured-image img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
    transition: var(--transition);
}

.featured-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .featured-image {
        padding: 2rem 0;
    }
    
    .featured-image img {
        border-radius: 20px;
    }
}

.footer-hours {
    text-align: center;
    color: #ffffff;
}

.footer-hours ul {
    list-style: none;
    padding: 0;
}

.footer-hours li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-hours i {
    margin-right: 0.5rem;
    color: var(--color-primary-light);
}