/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== GENERAL ===== */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===== NAVBAR ===== */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}


.menu-toggle {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* Desktop */
.nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 20px;
}

section {
    scroll-margin-top: 90px;
}


/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        font-size: 2rem;
        color: white;
        cursor: pointer;
        z-index: 1100;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2cb5a0;

        flex-direction: column;
        align-items: center;

        max-height: 0;
        overflow: hidden;

        transition: max-height 0.35s ease;
        z-index: 1000;
    }

    .nav a {
        padding: 15px 0;
        width: 100%;
        text-align: center;
        color: white;
    }

    .nav.active {
        max-height: 300px;
    }
}


/* ===== HEADER ===== */
.header {
    background: #2cb5a0;
    position: relative;
    z-index: 1000;
}

.logo {
    color: white;
    font-weight: 600;
    font-size: 1.8rem;
}

.nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 400;
}

.nav a:hover {
    text-decoration: underline;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== HERO ===== */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Overlay oscuro */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h2 {
    font-size: 3rem;
}

.hero-content p {
    margin: 20px 0;
    font-size: 1.2rem;
}

.btn {
    background: #2cb5a0;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 30px;
}

/* ===== SERVICES ===== */
.services {
    padding: 70px 20px;
    background: #f7f7f7;
    text-align: center;
}

.services h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.services-subtitle {
    max-width: 700px;
    margin: auto;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-card .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2cb5a0;
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
}

/* ===== STORE ===== */
.store {
    padding: 70px 20px;
    text-align: center;
    background: #ffffff;
}

.store h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.store-subtitle {
    color: #666;
    margin-bottom: 50px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.product-card {
    background: #f9f9f9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-card img {
    width: 180px;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.1rem;
    margin: 15px 10px 5px;
}

.product-card .category {
    font-size: 0.9rem;
    color: #888;
}

.product-card .price {
    font-size: 1.1rem;
    color: #2cb5a0;
    font-weight: 600;
    margin: 10px 0;
}

.product-card button {
    background: #2cb5a0;
    color: white;
    border: none;
    padding: 12px;
    width: 80%;
    margin: 15px auto 20px;
    border-radius: 25px;
    cursor: pointer;
    display: block;
}

.product-card button:hover {
    background: #239b89;
}


/* ===== ABOUT ===== */
.about {
    padding: 60px 20px;
    background: #eef6f5;
    text-align: center;
}

/* ===== CONTACT ===== */
.contact {
    padding: 60px 20px;
    text-align: center;
}

.contact-form {
    max-width: 500px;
    margin: auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.contact-form button {
    background: #2cb5a0;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
}

/* ===== FOOTER ===== */
.footer {
    background: #1f1f1f;
    color: #ddd;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
}

.footer-box h3 {
    color: #2cb5a0;
    margin-bottom: 15px;
}

.footer-box p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.social-links a {
    display: block;
    color: #ddd;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.social-links a:hover {
    color: #2cb5a0;
}

/* MAPA */
.footer-map iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* FOOTER BOTTOM */
.footer-bottom {
    background: #151515;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    text-decoration: none;
    z-index: 1000;
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

/*SERVICIO PAGINA*/
.service-detail {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
}

.process-grid,
.vet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0 40px;
}

.process-card,
.vet-card {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

/* ===== VETERINARIOS ===== */
.vet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.vet-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vet-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.vet-photo img {
    width: auto;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
}

.vet-info {
    padding: 20px;
    text-align: center;
}

.vet-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.vet-role {
    display: block;
    font-size: 0.9rem;
    color: #2cb5a0;
    margin-bottom: 10px;
    font-weight: 600;
}

.vet-specialty {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.vet-details {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.vet-details li {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.vet-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Botones pequeños */
.btn-small {
    background: #2cb5a0;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-outline {
    border: 2px solid #2cb5a0;
    color: #2cb5a0;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: #2cb5a0;
    color: white;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  width: 90%;
  max-width: 720px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  animation: modalFade 0.3s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
}

.modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  padding: 24px;
}

.modal-role {
  display: block;
  color: #2cb5a0;
  font-weight: 600;
  margin-bottom: 10px;
}

.modal-specialty {
  margin-bottom: 15px;
  color: #555;
}

.modal-details {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.modal-details li {
  margin-bottom: 6px;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

/* Responsive modal */
@media (max-width: 600px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

/*Animacion ligera*/
/* ===== ANIMACIONES SCROLL ===== */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

/*Animacion 2*/
.service-card,
.vet-card,
.product-card {
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.vet-card:hover .vet-photo img {
    transform: scale(1.05);
}

.vet-photo img {
    transition: transform 0.4s ease;
}

/*CSS extra*/
.modal-overlay {
    backdrop-filter: blur(3px);
}

.modal {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
    opacity: 1;
}

.whatsapp-float {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
    70% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

html {
    scroll-behavior: smooth;
}

/*SERVICE FONDO*/
/* ===== FONDO SERVICIO ===== */

.service-detail {
    padding: 80px 20px;
    min-height: 100vh;

    background: linear-gradient(
        135deg,
        #2cb5a0 0%,
        #4fd1bd 50%,
        #1d7c6e 100%
    );

    color: #ffffff;
}

.service-detail h2,
.service-detail h3,
.service-detail p {
    color: #ffffff;
}

.process-card,
.vet-card {
    background: #ffffff;
    color: #333;
}

.process-card,
.vet-card {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-detail {
    background-size: 300% 300%;
    animation: gradientMove 12s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.service-wrapper {
    max-width: 1100px;
    margin: auto;
}

.service-detail h3 {
    margin-top: 50px;
    margin-bottom: 20px;
    position: relative;
}

.service-detail h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #ffffff;
    border-radius: 2px;
    margin-top: 8px;
}

a{
    text-decoration: none;
}