/* Variables de Colores de Green Vet */
:root {
    --green-primary: #4CAF50; /* Un verde vibrante, puedes ajustarlo al tono exacto de tu logo */
    --green-dark: #388E3C;
    --purple-accent: #673AB7; /* Un morado que combine, puedes ajustarlo */
    --purple-dark: #512DA8;
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --background-light: #ffffff;
    --background-grey: #f9f9f9;
    --border-color: #e0e0e0;
}

/* Estilos Generales */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Evitar scroll horizontal no deseado */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--purple-dark);
    margin-top: 0;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

h2 {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--green-primary);
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    overflow: hidden; /* Para contener floats si los hay */
}

.section:nth-of-type(odd) {
    background-color: var(--background-light);
}

.section:nth-of-type(even) {
    background-color: var(--background-grey);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    font-size: 1.1em;
    color: #555;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--green-primary);
    color: var(--text-light);
    border: 2px solid var(--green-primary);
}

.btn-primary:hover {
    background-color: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--purple-accent);
    border: 2px solid var(--purple-accent);
}

.btn-secondary:hover {
    background-color: var(--purple-accent);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Header / Hero Section */
.hero-section {
background-image: url('imagenes/hero-background.jpg'); /* Ruta a tu imagen de fondo /
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
background-color: rgba(0, 0, 0, 0.5); / Un color oscuro como fallback y para el blend /
background-blend-mode: multiply; / Oscurece la imagen */
color: var(--text-light);
padding: 120px 0 100px;
text-align: center;
position: relative;
min-height: 600px;
display: flex;
align-items: center;
justify-content: center;
}

.navbar {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 20px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.4); /* Fondo semi-transparente para el navbar */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.navbar .logo img {
    height: 50px; /* Ajusta el tamaño de tu logo */
    max-width: 100%;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--green-primary);
}

.menu-toggle {
    display: none; /* Oculto por defecto en desktop */
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.8em;
    cursor: pointer;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative; /* Asegura que esté por encima del fondo */
    z-index: 1;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

/* Quienes Somos Section */
.about-us-section {
    background-color: var(--background-light);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.about-text h2::after {
    left: 0;
    transform: none;
}

/* Servicios Section */
.services-section {
    background-color: var(--background-grey);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.service-item i {
    font-size: 3em;
    color: var(--green-primary);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.4em;
    color: var(--purple-dark);
    margin-bottom: 10px;
}

.service-item p {
    font-size: 0.95em;
    color: #666;
}

/* Guardia Section */
.emergency-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('imagenes/emergency-background.jpg') no-repeat center center/cover; /* Otra imagen de fondo para esta sección */
    color: var(--text-light);
    padding: 80px 0;
}

.emergency-section h2 {
    color: var(--text-light);
}

.emergency-section h2::after {
    background-color: var(--green-primary);
}

.emergency-section .section-description {
    color: var(--text-light);
}

.guardia-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    background-color: rgba(255, 255, 255, 0.1); /* Fondo semi-transparente */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.guardia-info img {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.guardia-text {
    flex: 2;
    min-width: 300px;
}

.guardia-text h3 {
    color: var(--text-light);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.guardia-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.guardia-text ul li {
    font-size: 1.1em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.guardia-text ul li i {
    margin-right: 10px;
    color: var(--green-primary);
    font-size: 1.2em;
}

.guardia-text p {
    font-size: 1em;
    margin-bottom: 30px;
}

/* Galería Section */
.gallery-section {
    background-color: var(--background-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 250px; /* Altura fija para uniformidad */
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin distorsionarse */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Contacto Section */
.contact-section {
    background-color: var(--background-grey);
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start; /* Alinea los ítems al inicio */
}

.contact-info, .contact-form-container {
    flex: 1;
    min-width: 300px;
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-info h3, .contact-form-container h3 {
    color: var(--purple-dark);
    margin-bottom: 25px;
    font-size: 1.6em;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    font-size: 1.05em;
    color: #555;
}

.contact-info ul li i {
    margin-right: 15px;
    color: var(--green-primary);
    font-size: 1.3em;
    margin-top: 3px; /* Pequeño ajuste visual */
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--purple-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--green-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.contact-form textarea {
    resize: vertical; /* Permite redimensionar verticalmente */
    min-height: 120px;
}

.contact-form .btn-primary {
    width: auto;
    cursor: pointer;
    font-size: 1.1em;
}

/* Footer */
.footer {
    background-color: var(--purple-dark);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
    font-size: 0.95em;
}

.footer .social-links {
    margin-top: 20px;
}

.footer .social-links a {
    color: var(--text-light);
    font-size: 1.8em;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: var(--green-primary);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }

    .hero-section {
        padding: 100px 0 80px;
        min-height: 500px;
    }

    .nav-links {
        flex-direction: column;
        background-color: var(--purple-dark);
        position: absolute;
        top: 90px; /* Ajustar según la altura del navbar */
        left: 0;
        width: 100%;
        padding: 20px 0;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links a {
        padding: 10px 20px;
        display: block;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .about-content,
    .guardia-info,
    .contact-grid {
        flex-direction: column;
    }

    .about-image,
    .guardia-info img,
    .contact-info,
    .contact-form-container {
        width: 100%;
        min-width: unset;
    }

    .about-text h2 {
        text-align: center;
    }

    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .section {
        padding: 60px 0;
    }

    .service-grid, .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.6em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .section-description {
        margin-bottom: 40px;
        font-size: 1em;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form textarea {
        width: calc(100% - 24px); /* Ajuste para padding + border */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    .hero-section {
        padding: 80px 0 60px;
    }

    .navbar .logo img {
        height: 40px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .about-text h2, .guardia-text h3 {
        font-size: 1.5em;
    }

    .contact-info ul li, .guardia-text ul li, .service-item p {
        font-size: 0.9em;
    }
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px; /* Distancia desde abajo */
    right: 40px; /* Distancia desde la derecha */
    background-color: #25d366; /* Color oficial de WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.4);
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none; /* Quita el subrayado del enlace */
}

.whatsapp-float i {
    margin-top: 0; /* Asegura que el icono esté centrado */
}

.whatsapp-float:hover {
    background-color: #1DA851; /* Un verde un poco más oscuro al pasar el mouse */
    transform: scale(1.05); /* Ligeramente más grande al pasar el mouse */
}

/* Ajuste para dispositivos móviles (opcional, para que no quede tan pegado) */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}