/* =============================================
   ARS ANIMALIS - Main Stylesheet
   Colors: Green nature tones + White/Grey
   Typography: Nunito (rounded sans-serif)
   ============================================= */

/* CSS Variables - EDIT COLORS HERE */
:root {
    --color-primary: #2d7a4f;
    --color-primary-dark: #1e5c3a;
    --color-primary-light: #4a9d6e;
    --color-secondary: #8bc34a;
    --color-accent: #ff9800;

    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;

    --color-bg: #ffffff;
    --color-bg-alt: #f8faf8;
    --color-bg-dark: #1a1a1a;

    --color-border: #e0e5e0;

    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--color-primary);
}

.nav-menu .btn-nav,
.btn-nav {
    padding: 0.5rem 1.75rem !important;
    display: inline-block;
    background: var(--color-primary);
    color: #fff !important;
    border-radius: var(--radius-sm);
}

.btn-nav:hover {
    background: var(--color-primary-dark);
}

.btn-nav::after {
    display: none;
}

.btn-block {
    display: block;
    width: 100%;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-color: #2d7a4f;
    background-image: url('../assets/media/arsanimalis-hero-image.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 6rem 1.5rem 3rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(30, 92, 58, 0.65) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0.8;
}

.hero-scroll span {
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: 0 auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    40% {
        transform: rotate(45deg) translateY(10px);
    }

    60% {
        transform: rotate(45deg) translateY(5px);
    }
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
    background: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Contenedor del icono */
.service-icon {
    /* Eliminamos font-size: 3rem; ya que ahora son imágenes, no texto */
    margin-bottom: 1rem;
}

/* Regla específica para las nuevas imágenes SVG */

.service-icon {
    margin-bottom: 1rem;
}

.service-icon img {
    width: 60px;
    /* Tamaño solicitado */
    height: auto;
    /* Mantiene la proporción del icono */
    display: block;
    /* Convierte la imagen en un elemento de bloque */
    margin: 0 auto;
    /* CENTRADO: Margen superior/inferior 0, lateral automático */
}


.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* =============================================
   AVAILABILITY
   ============================================= */
.availability {
    display: none;
    background: var(--color-bg);
}

.calendar-wrapper {
    background: #1a1a2e;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.availability-iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.availability-note {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* =============================================
   PRICES
   ============================================= */
.prices {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
}

.prices .section-title {
    color: #fff;
}

.prices .section-intro {
    color: rgba(255, 255, 255, 0.9);
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.price-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.price-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.price-card.featured {
    background: #fff;
    color: var(--color-text);
    transform: scale(1.05);
}

.price-card.featured:hover {
    transform: scale(1.08);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.price-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.price-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
}

.price-amount span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

.price-card.featured .price-amount {
    color: var(--color-primary);
}

.prices-note {
    text-align: center;
    margin-top: 2rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* =============================================
   GALLERY
   ============================================= */
.gallery {
    background: var(--color-bg-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1rem;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Placeholder if no images */
.gallery-item img[src*="gallery"] {
    background: linear-gradient(135deg, #ccc, #eee);
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
    background: var(--color-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    /* Ensure it takes full height of grid cell */
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--color-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--color-primary-dark);
}

.contact-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--color-primary);
}

.map-wrapper {
    margin-top: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    /* Desktop: Fill available space */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    /* Fallback for very short forms */
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-wrapper {
        aspect-ratio: 4/3;
        flex-grow: 0;
        min-height: auto;
    }
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-bg-alt);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: span 2;
}

.btn-block {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group.full-width,
    .btn-block {
        grid-column: span 1;
    }
}

.contact-form-wrapper h3 {
    margin-bottom: 1.5rem;
    color: var(--color-primary-dark);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 122, 79, 0.1);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(45, 122, 79, 0.1);
    color: var(--color-primary-dark);
}

.form-message.error {
    display: block;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--color-primary-dark);
    color: #fff;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

.footer-brand .logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    font-size: 1.5rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-social a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: #fff;
    padding: 0.875rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background: #128C7E;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
}

.whatsapp-text {
    font-weight: 600;
    font-size: 0.95rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 180px);
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {

    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-primary-light);
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a::after {
        display: none;
    }

    /* Hero */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Sections */
    .section {
        padding: 3.5rem 0;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 150px);
    }

    /* Prices */
    .price-card.featured {
        transform: none;
    }

    .price-card.featured:hover {
        transform: translateY(-5px);
    }

    /* WhatsApp button */
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        padding: 0.75rem;
        border-radius: 50%;
    }

    .whatsapp-text {
        display: none;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 180px);
    }

    .gallery-item.large {
        grid-column: span 1;
    }

    .availability-iframe {
        height: 400px;
    }
}

/* Mobile hero image */
@media (max-width: 768px) {
    .hero {
        background-image: url('../assets/media/arsanimalis-hero-image-movil.webp');
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}





/* =============================================
   ADAPTATION SECTION
   ============================================= */
.adaptation-section {
    background: var(--color-bg);
    padding: 5rem 0;
}

.adaptation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.adaptation-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--color-border);
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.adaptation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.adaptation-card .step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary-light);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.adaptation-card .step-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    display: block;
    object-fit: contain;
}

.adaptation-card h3 {
    font-size: 1.25rem;
    color: var(--color-primary-light);
    margin-bottom: 1rem;
}

.adaptation-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.adaptation-benefits {
    margin-top: 5rem;
    padding: 3.5rem 2rem;
    background: var(--color-primary-dark);
    color: #fff;
    border-radius: var(--radius-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.adaptation-benefits h3 {
    color: #fff;
    margin-bottom: 2.5rem;
    font-size: 1.75rem;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

.benefit-item h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary-light);
}

.benefit-item p {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.6;
}

.adaptation-cta-box {
    text-align: center;
    margin-top: 4rem;
}

.adaptation-cta-box p {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    color: var(--color-text-light);
    font-style: italic;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

/* =============================================
   ANIMATIONS (Added via Interaction Design Skill)
   ============================================= */
@keyframes pulse-animation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }

    70% {
        transform: scale(1.05);
        /* Increased blur (3rd value) to 15px for "difuminado" effect */
        box-shadow: 0 0 15px 10px rgba(255, 152, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

.pulse {
    animation: pulse-animation 1.2s infinite;
    /* Essential for transform to work on inline elements like <a> */
    display: inline-block;
    border-radius: var(--radius-sm);
    /* Optional: ensures shadow follows rounded corners */
}