/* Variables de Color Actualizadas */
:root {
    --primary-color: #114B3A; /* Verde oscuro elegante en lugar de azul */
    --accent-gold: #c5a059;
    --accent-red: #CE2B37; /* Rojo para acentos sutiles */
    --bg-cream: #fdfbf7;
    --text-dark: #333333;
    --text-light: #ffffff;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

/* Cabecera / Navbar */
header {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--bg-cream);
    /* Borde inferior con los colores compartidos de Italia y México */
    border-bottom: 6px solid transparent;
    border-image: linear-gradient(to right, #006847 0%, #006847 33.3%, #e0e0e0 33.3%, #e0e0e0 66.6%, #CE2B37 66.6%, #CE2B37 100%) 1;
}

.logo {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sección Hero */
.hero {
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--accent-gold);
    display: block;
    font-size: 1.5rem;
    margin-top: 1rem;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.hero-image img {
    width: 100%;      /* Se ajusta al ancho de su contenedor */
    max-width: 500px; /* Pero nunca crece más de 500px */
    height: auto;     /* Mantiene la proporción original para no verse estirada */
    object-fit: cover; /* Recorta la imagen para que llene el espacio si las proporciones fallan */
    border-radius: 10px;
    border: 4px solid var(--accent-gold);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Sección de Servicios */
.services {
    padding: 5rem 10%;
    text-align: center;
}

.services-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.services-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-red); /* Un toque sutil de rojo aquí */
    margin: 1rem auto 0;
}

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

.service-card {
    background-color: #ffffff;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(17, 75, 58, 0.15);
    border-color: var(--accent-gold);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.service-card h4 {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: 'Lato', sans-serif;
    font-style: italic;
}

.service-card p {
    font-size: 0.9rem;
    color: #666;
}

.service-number {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: var(--accent-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* Responsividad Media Queries */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 5%;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image {
        margin-top: 3rem;
    }
}