/* Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background-color: #1a1a1a;
    color: white;
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 70px;
    width: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff6b00;
    margin-right: 5px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #ff6b00;
    margin: 0;
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    width: auto;
}

.menu-toggle:hover {
    background: none;
    color: #ff6b00;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    display: block;
    padding: 10px 0;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff6b00;
}

.btn-admin {
    background-color: #ff6b00;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-admin:hover {
    background-color: #ff8533;
}

/* Main content */
main {
    min-height: calc(100vh - 200px);
}

/* Hero Section - Carrusel con Slide */
.hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
    z-index: 2;
}

.carousel-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease 0.2s both;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.carousel-content .hero-buttons {
    animation: fadeInUp 0.5s ease 0.4s both;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #ff6b00;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-arrow:hover {
    background-color: rgba(255,107,0,0.8);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background-color: #ff6b00;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: #ff8533;
}

.btn-admin-header {
    background-color: #333;
}

.btn-admin-header:hover {
    background-color: #444;
}

.btn-small {
    display: inline-block;
    background-color: #ff6b00;
    color: white;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 0.9rem;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    text-align: center;
}

/* Botones de contacto uno al lado del otro */
.botones-contacto {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.botones-contacto .btn {
    min-width: 180px;
}

.btn-whatsapp {
    background-color: #ff6b00;
}

.btn-whatsapp:hover {
    background-color: #ff8533;
}

/* Servicios Section */
.servicios, .servicios-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.servicios h2, .servicios-container h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

.cards, .servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.card, .servicio-card {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover, .servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card h3, .servicio-card h3 {
    color: #ff6b00;
    margin-bottom: 10px;
}

.card p, .servicio-card p {
    margin-bottom: 15px;
    color: #666;
}

.ver-todos {
    text-align: center;
    margin-top: 20px;
}

/* SECCIÓN: Comentarios destacados - Carrusel Vertical Automático */
.comentarios-destacados {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #f4f4f4;
}

.comentarios-destacados h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
    color: #333;
}

.comentarios-destacados .subtitulo {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 1.1rem;
}

.comentarios-vertical-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    background-color: transparent;
}

.comentarios-vertical-track {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
    gap: 20px;
}

/* Ocultar scrollbar pero mantener funcionalidad */
.comentarios-vertical-track::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.comentario-vertical-item {
    flex: 0 0 auto;
    height: calc(50% - 10px);
    min-height: 180px;
}

.comentario-vertical-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 4px solid #ff6b00;
    transition: transform 0.3s, box-shadow 0.3s;
}

.comentario-vertical-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,107,0,0.15);
}

.comentario-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comentario-header i {
    font-size: 2.5rem;
    color: #ff6b00;
}

.comentario-info h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.comentario-fecha {
    color: #888;
    font-size: 0.85rem;
}

.comentario-cuerpo {
    flex: 1;
    overflow-y: auto;
}

.comentario-cuerpo p {
    color: #555;
    font-style: italic;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contacto Section */
.contacto, .contacto-container {
    background-color: #f4f4f4;
    padding: 60px 20px;
    text-align: center;
}

.contacto h2, .contacto-container h1 {
    margin-bottom: 20px;
    color: #333;
}

.contacto p, .contacto-container p {
    margin-bottom: 30px;
    color: #666;
}

.contacto-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contacto-info h3 {
    color: #ff6b00;
    margin: 20px 0 10px;
}

.contacto-info a {
    color: #ff6b00;
}

.contacto-info a:hover {
    text-decoration: underline;
}

/* Agendar Cita */
.agendar-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
}

.agendar-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.agendar-container p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    color: #333;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 5px rgba(255,107,0,0.3);
}

button {
    background-color: #ff6b00;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #ff8533;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 40px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.footer-container h3, .footer-container h4 {
    color: #ff6b00;
    margin-bottom: 15px;
}

.footer-container p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-container a {
    color: #ff6b00;
}

.footer-container a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #111;
    color: #888;
}

/* Comentarios Section */
.comentarios-section {
    padding: 60px 20px;
    background-color: #f4f4f4;
    color: #333;
}

.comentarios-container {
    max-width: 1200px;
    margin: 0 auto;
}

.comentarios-titulo {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.comentarios-subtitulo {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 50px;
    color: #666;
}

.comentarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.comentario-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333;
    position: relative;
    border: 1px solid #eee;
}

.comentario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.comentario-card::before {
    content: '"';
    font-size: 60px;
    color: #ff6b00;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 15px;
    font-family: serif;
}

.comentario-texto {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 15px 0;
    padding: 0 10px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.comentario-autor {
    font-weight: bold;
    color: #ff6b00;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.comentario-autor i {
    font-size: 0.9em;
    color: #999;
    font-weight: normal;
}

.comentario-fecha {
    font-size: 0.85em;
    color: #888;
}

.sin-comentarios {
    text-align: center;
    grid-column: 1 / -1;
    padding: 50px;
    background: rgba(255,255,255,0.8);
    border-radius: 15px;
    font-size: 1.2em;
    color: #666;
    border: 1px solid #ddd;
}

/* Formulario Comentarios */
.comentarios-form-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.comentarios-form-titulo {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #333;
}

.comentarios-form {
    max-width: 600px;
    margin: 0 auto;
}

.comentarios-form-group {
    margin-bottom: 20px;
}

.comentarios-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 1.1em;
    color: #333;
}

.comentarios-form-group input,
.comentarios-form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    color: #333;
}

.comentarios-form-group input::placeholder,
.comentarios-form-group textarea::placeholder {
    color: #aaa;
}

.comentarios-form-group input:focus,
.comentarios-form-group textarea:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 10px rgba(255,107,0,0.1);
}

.comentarios-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.estrellas {
    color: #ffd700;
    font-size: 1.2em;
    margin-bottom: 10px;
    text-align: center;
}

/* Mensajes de éxito/error */
.mensaje-exito {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    text-align: center;
}

.mensaje-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    text-align: center;
}

/* ========== RESPONSIVE DESIGN ========== */
/* Tablets y móviles grandes (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero {
        height: 550px;
    }
    
    .carousel-content h1 {
        font-size: 2.2rem;
    }
}

/* Móviles (max-width: 768px) */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 10px 20px;
    }
    
    .logo a {
        justify-content: center;
    }
    
    .logo-img {
        height: 55px;
        width: 55px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    /* Menú hamburguesa */
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        background-color: #1a1a1a;
    }
    
    nav.active {
        max-height: 300px;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 0;
        padding: 15px 0;
    }
    
    nav ul li a {
        padding: 12px 20px;
        display: block;
    }
    
    .admin-access {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .btn-admin {
        display: inline-block;
        width: auto;
        min-width: 150px;
    }
    
    .hero {
        height: 450px;
    }
    
    .carousel-content h1 {
        font-size: 1.8rem;
    }
    
    .carousel-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .carousel-arrow.prev {
        left: 10px;
    }
    
    .carousel-arrow.next {
        right: 10px;
    }
    
    .cards, .servicios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .servicios, .servicios-container {
        padding: 40px 20px;
    }
    
    .contacto-info {
        margin: 0 20px;
    }
    
    .botones-contacto {
        flex-direction: column;
        gap: 15px;
    }
    
    .botones-contacto .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .comentarios-vertical-carousel {
        height: 380px;
    }
    
    .comentario-vertical-item {
        height: calc(50% - 10px);
        min-height: 170px;
    }
    
    .comentario-vertical-card {
        padding: 20px;
    }
    
    .comentarios-titulo {
        font-size: 1.8em;
    }
    
    .comentarios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .comentarios-form-container {
        padding: 25px;
        margin: 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    
    .footer-container h3, .footer-container h4 {
        margin-bottom: 10px;
    }
    
    .agendar-container {
        padding: 40px 20px;
    }
    
    form {
        padding: 20px;
    }
}

/* Móviles pequeños (max-width: 480px) */
@media (max-width: 480px) {
    .hero {
        height: 400px;
    }
    
    .carousel-content h1 {
        font-size: 1.4rem;
    }
    
    .carousel-content p {
        font-size: 0.9rem;
    }
    
    .logo-img {
        height: 45px;
        width: 45px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .comentarios-vertical-carousel {
        height: 340px;
    }
    
    .comentario-vertical-item {
        min-height: 150px;
    }
    
    .comentario-vertical-card {
        padding: 15px;
    }
    
    .comentario-header i {
        font-size: 2rem;
    }
    
    .comentario-info h4 {
        font-size: 1rem;
    }
    
    .comentario-cuerpo p {
        font-size: 0.85rem;
    }
    
    .servicios h2, .servicios-container h1 {
        font-size: 1.6rem;
    }
    
    .comentarios-titulo {
        font-size: 1.5em;
    }
    
    .comentarios-subtitulo {
        font-size: 1em;
    }
    
    .comentarios-form-titulo {
        font-size: 1.4em;
    }
    
    .card, .servicio-card {
        padding: 15px;
    }
}

/* Tablets (769px a 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .cards, .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        height: 500px;
    }
    
    .comentarios-vertical-carousel {
        height: 380px;
    }
    
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
}