@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --color-primary: #6A5ACD;
    --color-secondary: #4ECDC4;
    --color-background: #F7FFF7;
    --color-text: #333;
    --color-accent: #A8DADC;
    --color-good-food: #2ECC71;
    --color-bad-food: #E74C3C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Header Styles */
header {
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    width: 50px;
    margin-right: 10px;
}

nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.1);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Responsive Navigation */
@media screen and (max-width: 768px) {
    .nav-toggle-label {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-primary);
        flex-direction: column;
        display: none;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-toggle:checked ~ nav ul {
        display: flex;
    }

    nav ul li {
        text-align: center;
        margin: 0.5rem 0;
    }
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
}

.hero-content {
    max-width: 50%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.intro-description {
    margin-bottom: 2rem;
}

.intro-description p {
    margin-bottom: 1rem;
}

.quick-sections {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.rabbit-animation {
    max-width: 300px;
}

/* Features Section */
.features {
    display: flex;
    justify-content: space-around;
    padding: 4rem 2rem;
    background-color: white;
}

.feature {
    text-align: center;
    max-width: 300px;
    padding: 1rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

footer {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: 1rem;
}

/* Food Section Improvements */
.alimentacion-grid {
  display: flex;
  margin-left: 30px;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
}

.alimentos-permitidos, .alimentos-prohibidos {
  flex: 1;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.alimentos-permitidos {
  background-color: #e8f5e9;
}

.alimentos-prohibidos {
  background-color: #ffebee;
}

/* Tipos de Conejos Improvements */
.tipos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.tipo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.tipo-card .card-image {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.tipo-card img {
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* Subpage Grid Layouts */
.cuidados-grid, .salud-grid, .cultura-contenido {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.cuidado-item, .salud-item, .cultura-item {
  background-color: var(--color-background);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.cuidado-item .icon, .salud-item .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* Remove hover effects */
.cuidado-item:hover, .salud-item:hover, .cultura-item:hover {
  transform: none;
}

/* Improved Responsive Design */
@media screen and (max-width: 768px) {
  .alimentacion-grid, .tipos-grid, .salud-grid, .cultura-contenido {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .alimentos-permitidos, .alimentos-prohibidos,
  .tipo-card, .salud-item, .cultura-item {
    width: 100%;
    margin: 0.5rem 0;
  }
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .cuidados-grid, .salud-grid, .cultura-contenido {
    grid-template-columns: 1fr;
  }
  
  .alimentacion-grid {
    flex-direction: column;
  }
  
  .alimentos-permitidos, .alimentos-prohibidos {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature {
        margin-bottom: 2rem;
    }
}

/* Improved Mobile Responsiveness */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
        text-align: center;
        width: 100%;
    }

    nav {
        width: 100%;
    }

    .nav-toggle-label {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--color-primary);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-toggle:checked ~ .nav-menu {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }

    .nav-menu li a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    /* Adjust sections for mobile */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .quick-sections {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .quick-sections .btn {
        width: 100%;
        max-width: 300px;
    }

    .rabbit-animation {
        max-width: 250px;
        margin: 0 auto;
    }

    .features {
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .feature {
        margin-bottom: 2rem;
        max-width: 100%;
    }

    /* Grid layouts for mobile */
    .tipos-grid,
    .alimentacion-grid,
    .cuidados-grid,
    .salud-grid,
    .cultura-contenido {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    /* Typography adjustments */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Ensure full width for images and content */
    img, 
    .tipo-card img,
    .content-wrapper {
        max-width: 100%;
        width: 100%;
    }
}

/* Additional mobile-specific tweaks */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .hero-content p {
        font-size: 0.9rem;
    }
}

/* Subpage Background Enhancements */
#tipos, #alimentacion, #cuidados, #salud, #cultura {
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--color-primary) 10%, white) 0%, 
        color-mix(in srgb, var(--color-secondary) 5%, white) 100%
    );
    position: relative;
    overflow: hidden;
}

/* Subtle Background Texture and Depth */
#tipos::before, 
#alimentacion::before, 
#cuidados::before, 
#salud::before, 
#cultura::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255,255,255,0.1) 8%, transparent 8%),
        radial-gradient(rgba(255,255,255,0.1) 8%, transparent 8%);
    background-position: 0 0, 50px 50px;
    background-size: 100px 100px;
    opacity: 0.3;
    pointer-events: none;
}

/* Soft Shadow and Elevation */
.tipos-grid,
.alimentacion-grid,
.cuidados-grid,
.salud-grid,
.cultura-contenido {
    background: rgba(255,255,255,0.7);
    border-radius: 15px;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.05),
        0 5px 15px rgba(0,0,0,0.03);
    padding: 2rem;
    margin: 2rem 1rem;
}

/* Typography and Color Refinements */
#tipos h2,
#alimentacion h2,
#cuidados h2,
#salud h2,
#cultura h2 {
    color: var(--color-primary);
    font-weight: 300;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 2rem;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    #tipos::before, 
    #alimentacion::before, 
    #cuidados::before, 
    #salud::before, 
    #cultura::before {
        background-size: 50px 50px;
    }

    .tipos-grid,
    .alimentacion-grid,
    .cuidados-grid,
    .salud-grid,
    .cultura-contenido {
        margin: 1rem 0.5rem;
        padding: 1rem;
    }
}

.rabbit-carousel {
    max-width: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    position: relative;
}

.carousel-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.carousel-image.active {
    opacity: 1;
    position: relative;
}

@media screen and (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .rabbit-carousel {
        max-width: 300px;
        margin: 1rem auto;
    }
}