:root {
    --primary-color: #2E7D32; /* Verde principal */
    --accent-color: #FFC107; /* Amarillo/accento */
    --secondary-color: #00695C; /* Verde oscuro */
    --light-text: #ffffff;
    --dark-text: #263238;
    --light-bg: #E8F5E9; /* Verde muy claro */
    --medium-bg: #C8E6C9; /* Verde claro */
    --card-shadow: 0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px 0 rgba(0,0,0,.14), 0 1px 18px 0 rgba(0,0,0,.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Roboto', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--light-text);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.26);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 8px;
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 24px;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 32px;
    opacity: 0.9;
}

.cta-button {
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 24px;
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 48px;
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    text-align: center;
    transition: transform 0.3s;
    padding: 24px;
    background-color: white;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    background-color: var(--primary-color);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
}

.feature-card h3 {
    margin-bottom: 16px;
    color: var(--primary-color);
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background-color: var(--medium-bg);
}

.benefits-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.benefit-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background-color: white;
}

.teamSwiper {
    padding: 30px 10px 60px;
    width: 100%;
}

.team-card {
    text-align: center;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    background-color: #f9f9f9;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-image {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(46, 125, 50, 0.8);
    display: flex;
    justify-content: center;
    padding: 8px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.team-image:hover .team-social {
    transform: translateY(0);
}

.team-social a {
    color: white;
    margin: 0 8px;
    text-decoration: none;
}

.team-role {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 16px;
}

/* Swiper navigation */
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.testimonial-card {
    margin: 16px;
    padding: 24px;
    background-color: white;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 16px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-weight: bold;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px;
    background-color: #f9f9f9;
}

.form-full-width {
    width: 100%;
    margin-bottom: 16px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 500;
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 24px;
}

.footer-section h3 {
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 24px;
}

/* Estilos personalizados para los campos de formulario */
.mat-form-field-appearance-outline .mat-form-field-outline {
  color: rgba(46, 125, 50, 0.3); /* Color verde claro para el outline */
}

.mat-form-field-appearance-outline .mat-form-field-outline-thick {
  color: var(--primary-color); /* Color verde principal cuando está enfocado */
}

.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick {
  color: var(--primary-color); /* Color cuando está enfocado */
}

.mat-form-field-label {
  color: rgba(0, 0, 0, 0.6) !important; /* Color del label */
}

.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label {
  color: var(--primary-color) !important; /* Color del label cuando flota */
}

.mat-input-element {
  color: var(--dark-text) !important; /* Color del texto ingresado */
}

/* Mejora visual para los campos de formulario */
.mat-form-field-appearance-outline .mat-form-field-flex {
  background-color: #f9f9f9;
  border-radius: 4px;
  padding: 0.75em 0.75em 0 0.75em;
  transition: all 0.3s;
}

.mat-form-field-appearance-outline .mat-form-field-flex:hover,
.mat-form-field-appearance-outline.mat-focused .mat-form-field-flex {
  background-color: #f1f8e9;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 16px 0;
        box-shadow: 0 5px 5px rgba(0,0,0,0.2);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
        padding: 12px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .teamSwiper {
        padding: 30px 0 60px;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
    }
}

[ng-cloak] {
    display: none !important;
}